|
|
@@ -8,8 +8,10 @@ import lombok.Getter; |
|
|
|
import lombok.Setter; |
|
|
|
import lombok.ToString; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.beans.factory.config.ConfigurableBeanFactory; |
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.context.annotation.Lazy; |
|
|
|
import org.springframework.context.annotation.Scope; |
|
|
|
|
|
|
|
import java.util.Properties; |
|
|
@@ -30,7 +32,8 @@ public class PositionConfig { |
|
|
|
@Value("${hello}") |
|
|
|
private String hello; |
|
|
|
|
|
|
|
@Scope("prototype") |
|
|
|
@Lazy |
|
|
|
@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON) |
|
|
|
public RzlAccount getRzlAccount() { |
|
|
|
|
|
|
|
RzlAccount rzlAccount = new RzlAccount(); |
|
|
|