feat: 修改property加载方式

This commit is contained in:
zlt2000
2023-11-25 10:57:08 +08:00
parent cb77754ca2
commit c91f01aea1
14 changed files with 0 additions and 27 deletions
@@ -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();
@@ -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)