feat: 修改property加载方式
This commit is contained in:
-2
@@ -4,7 +4,6 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
@@ -18,7 +17,6 @@ import org.springframework.stereotype.Component;
|
||||
@Getter
|
||||
@ConfigurationProperties(prefix = "zlt.security")
|
||||
@RefreshScope
|
||||
@Component
|
||||
public class SecurityProperties {
|
||||
private AuthProperties auth = new AuthProperties();
|
||||
|
||||
|
||||
-2
@@ -4,7 +4,6 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Token配置
|
||||
@@ -20,7 +19,6 @@ import org.springframework.stereotype.Component;
|
||||
@Getter
|
||||
@ConfigurationProperties(prefix = "zlt.oauth2.token.store")
|
||||
@RefreshScope
|
||||
@Component
|
||||
public class TokenStoreProperties {
|
||||
/**
|
||||
* token存储类型(redis/db/authJwt/resJwt)
|
||||
|
||||
Reference in New Issue
Block a user