@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component; | |||
@Component | |||
public class RzlAccount { | |||
@Value("${hello}") | |||
@Value("${position.hello}") | |||
private String hello; | |||
RzlAccount() | |||
@@ -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; | |||
} | |||
} |