@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component; | |||||
@Component | @Component | ||||
public class RzlAccount { | public class RzlAccount { | ||||
@Value("${hello}") | |||||
@Value("${position.hello}") | |||||
private String hello; | private String hello; | ||||
RzlAccount() | RzlAccount() | ||||
@@ -30,15 +30,4 @@ import java.util.Properties; | |||||
@ConfigurationProperties(prefix = "position") | @ConfigurationProperties(prefix = "position") | ||||
public class PositionConfig { | 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; | |||||
} | |||||
} | } |