Bläddra i källkod

增加配置文件读取

tags/v1.0.0^2
林万龙 4 år sedan
förälder
incheckning
5c13b0c254
2 ändrade filer med 1 tillägg och 12 borttagningar
  1. +1
    -1
      src/main/java/com/telpo/dipperposition/co/RzlAccount.java
  2. +0
    -11
      src/main/java/com/telpo/dipperposition/config/PositionConfig.java

+ 1
- 1
src/main/java/com/telpo/dipperposition/co/RzlAccount.java Visa fil

@@ -20,7 +20,7 @@ import org.springframework.stereotype.Component;
@Component
public class RzlAccount {

@Value("${hello}")
@Value("${position.hello}")
private String hello;

RzlAccount()


+ 0
- 11
src/main/java/com/telpo/dipperposition/config/PositionConfig.java Visa fil

@@ -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;
}

}

Laddar…
Avbryt
Spara