rollback 回滚错误提交, 保留加密组件开关 ;

This commit is contained in:
Michelle.Chung 2023-11-22 08:33:33 +08:00
parent bcdb83ebe4
commit 4b76a5c396
3 changed files with 8 additions and 0 deletions

View File

@ -167,6 +167,8 @@ mybatis-encryptor:
# api接口加密
api-decrypt:
# 是否开启全局接口加密
enabled: true
# AES 加密头标识
headerFlag: encrypt-key
# 响应加密公钥 非对称算法的公私钥 如SM2RSA 使用者请自行更换

View File

@ -16,6 +16,7 @@ import org.springframework.context.annotation.Bean;
*/
@AutoConfiguration
@EnableConfigurationProperties(ApiDecryptProperties.class)
@ConditionalOnProperty(value = "api-decrypt.enabled", havingValue = "true")
public class ApiDecryptAutoConfiguration {
@Bean

View File

@ -11,6 +11,11 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "api-decrypt")
public class ApiDecryptProperties {
/**
* 加密开关
*/
private Boolean enabled;
/**
* 头部标识
*/