refactor: 移除多余的配置

This commit is contained in:
2025-08-11 21:38:19 +08:00
parent 974a41373d
commit 88b7d80800
4 changed files with 1 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ public class JacksonExtensionProperties {
/**
* 大数值序列化模式
*/
private BigNumberSerializeMode bigNumberSerializeMode;
private BigNumberSerializeMode bigNumberSerializeMode = BigNumberSerializeMode.FLEXIBLE;
public BigNumberSerializeMode getBigNumberSerializeMode() {
return bigNumberSerializeMode;

View File

@@ -21,5 +21,3 @@ spring:
deserialization:
# 允许反序列化不存在的属性
fail-on-unknown-properties: false
# 大数值序列化模式
big-number-serialize-mode: FLEXIBLE

View File

@@ -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);

View File

@@ -1,6 +0,0 @@
--- ### 安全配置API加/解密配置
continew-starter.security:
api-crypto:
enabled: true
# 请求头中 AES 密钥 键名
secretKeyHeader: X-Api-Crypto