From 5c13b0c2544210aad701b164a6dff7c2bbd86cdd Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Tue, 12 Jan 2021 14:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/telpo/dipperposition/co/RzlAccount.java | 2 +- .../telpo/dipperposition/config/PositionConfig.java | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/com/telpo/dipperposition/co/RzlAccount.java b/src/main/java/com/telpo/dipperposition/co/RzlAccount.java index df5d1bc..5b589b4 100644 --- a/src/main/java/com/telpo/dipperposition/co/RzlAccount.java +++ b/src/main/java/com/telpo/dipperposition/co/RzlAccount.java @@ -20,7 +20,7 @@ import org.springframework.stereotype.Component; @Component public class RzlAccount { - @Value("${hello}") + @Value("${position.hello}") private String hello; RzlAccount() diff --git a/src/main/java/com/telpo/dipperposition/config/PositionConfig.java b/src/main/java/com/telpo/dipperposition/config/PositionConfig.java index 6a81b21..7e0b866 100644 --- a/src/main/java/com/telpo/dipperposition/config/PositionConfig.java +++ b/src/main/java/com/telpo/dipperposition/config/PositionConfig.java @@ -30,15 +30,4 @@ import java.util.Properties; @ConfigurationProperties(prefix = "position") public class PositionConfig { - @Value("${hello}") - private String hello; - - @Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON) - public RzlAccount getRzlAccount() { - - RzlAccount rzlAccount = new RzlAccount(); - rzlAccount.setHello(hello); - return rzlAccount; - } - }