|
|
@@ -3,12 +3,14 @@ package com.telpo.dipperposition.config; |
|
|
|
import com.alibaba.nacos.api.NacosFactory; |
|
|
|
import com.alibaba.nacos.api.PropertyKeyConst; |
|
|
|
import com.alibaba.nacos.api.config.ConfigService; |
|
|
|
import com.telpo.dipperposition.co.RzlAccount; |
|
|
|
import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
|
import lombok.ToString; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.context.annotation.Scope; |
|
|
|
|
|
|
|
import java.util.Properties; |
|
|
|
|
|
|
@@ -28,4 +30,12 @@ public class PositionConfig { |
|
|
|
@Value("${hello}") |
|
|
|
private String hello; |
|
|
|
|
|
|
|
@Scope("prototype") |
|
|
|
public RzlAccount getRzlAccount() { |
|
|
|
|
|
|
|
RzlAccount rzlAccount = new RzlAccount(); |
|
|
|
rzlAccount.setHello(hello); |
|
|
|
return rzlAccount; |
|
|
|
} |
|
|
|
|
|
|
|
} |