mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-10-31 22:57:19 +08:00 
			
		
		
		
	refactor: 移除多余的配置
This commit is contained in:
		| @@ -33,7 +33,7 @@ public class JacksonExtensionProperties { | ||||
|     /** | ||||
|      * 大数值序列化模式 | ||||
|      */ | ||||
|     private BigNumberSerializeMode bigNumberSerializeMode; | ||||
|     private BigNumberSerializeMode bigNumberSerializeMode = BigNumberSerializeMode.FLEXIBLE; | ||||
|  | ||||
|     public BigNumberSerializeMode getBigNumberSerializeMode() { | ||||
|         return bigNumberSerializeMode; | ||||
|   | ||||
| @@ -21,5 +21,3 @@ spring: | ||||
|     deserialization: | ||||
|       # 允许反序列化不存在的属性 | ||||
|       fail-on-unknown-properties: false | ||||
|     # 大数值序列化模式 | ||||
|     big-number-serialize-mode: FLEXIBLE | ||||
|   | ||||
| @@ -25,10 +25,8 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||||
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||||
| import org.springframework.boot.web.servlet.FilterRegistrationBean; | ||||
| import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.PropertySource; | ||||
| import top.continew.starter.core.constant.OrderedConstants; | ||||
| import top.continew.starter.core.constant.PropertiesConstants; | ||||
| import top.continew.starter.core.util.GeneralPropertySourceFactory; | ||||
| import top.continew.starter.security.crypto.filter.ApiCryptoFilter; | ||||
|  | ||||
| /** | ||||
| @@ -40,7 +38,6 @@ import top.continew.starter.security.crypto.filter.ApiCryptoFilter; | ||||
| @AutoConfiguration | ||||
| @EnableConfigurationProperties(ApiCryptoProperties.class) | ||||
| @ConditionalOnProperty(prefix = PropertiesConstants.SECURITY_API_CRYPTO, name = PropertiesConstants.ENABLED, havingValue = "true", matchIfMissing = true) | ||||
| @PropertySource(value = "classpath:default-api-crypto.yml", factory = GeneralPropertySourceFactory.class) | ||||
| public class ApiCryptoAutoConfiguration { | ||||
|  | ||||
|     private static final Logger log = LoggerFactory.getLogger(ApiCryptoAutoConfiguration.class); | ||||
|   | ||||
| @@ -1,6 +0,0 @@ | ||||
| --- ### 安全配置:API加/解密配置 | ||||
| continew-starter.security: | ||||
|   api-crypto: | ||||
|     enabled: true | ||||
|     # 请求头中 AES 密钥 键名 | ||||
|     secretKeyHeader: X-Api-Crypto | ||||
		Reference in New Issue
	
	Block a user