mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-09 04:59:21 +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() {
|
public BigNumberSerializeMode getBigNumberSerializeMode() {
|
||||||
return bigNumberSerializeMode;
|
return bigNumberSerializeMode;
|
||||||
|
@@ -21,5 +21,3 @@ spring:
|
|||||||
deserialization:
|
deserialization:
|
||||||
# 允许反序列化不存在的属性
|
# 允许反序列化不存在的属性
|
||||||
fail-on-unknown-properties: false
|
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.context.properties.EnableConfigurationProperties;
|
||||||
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
||||||
import org.springframework.context.annotation.Bean;
|
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.OrderedConstants;
|
||||||
import top.continew.starter.core.constant.PropertiesConstants;
|
import top.continew.starter.core.constant.PropertiesConstants;
|
||||||
import top.continew.starter.core.util.GeneralPropertySourceFactory;
|
|
||||||
import top.continew.starter.security.crypto.filter.ApiCryptoFilter;
|
import top.continew.starter.security.crypto.filter.ApiCryptoFilter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,7 +38,6 @@ import top.continew.starter.security.crypto.filter.ApiCryptoFilter;
|
|||||||
@AutoConfiguration
|
@AutoConfiguration
|
||||||
@EnableConfigurationProperties(ApiCryptoProperties.class)
|
@EnableConfigurationProperties(ApiCryptoProperties.class)
|
||||||
@ConditionalOnProperty(prefix = PropertiesConstants.SECURITY_API_CRYPTO, name = PropertiesConstants.ENABLED, havingValue = "true", matchIfMissing = true)
|
@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 {
|
public class ApiCryptoAutoConfiguration {
|
||||||
|
|
||||||
private static final Logger log = LoggerFactory.getLogger(ApiCryptoAutoConfiguration.class);
|
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