mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 02:25:56 +08:00
rollback 回滚错误提交, 保留加密组件开关 ;
This commit is contained in:
parent
bcdb83ebe4
commit
4b76a5c396
@ -167,6 +167,8 @@ mybatis-encryptor:
|
|||||||
|
|
||||||
# api接口加密
|
# api接口加密
|
||||||
api-decrypt:
|
api-decrypt:
|
||||||
|
# 是否开启全局接口加密
|
||||||
|
enabled: true
|
||||||
# AES 加密头标识
|
# AES 加密头标识
|
||||||
headerFlag: encrypt-key
|
headerFlag: encrypt-key
|
||||||
# 响应加密公钥 非对称算法的公私钥 如:SM2,RSA 使用者请自行更换
|
# 响应加密公钥 非对称算法的公私钥 如:SM2,RSA 使用者请自行更换
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import org.springframework.context.annotation.Bean;
|
|||||||
*/
|
*/
|
||||||
@AutoConfiguration
|
@AutoConfiguration
|
||||||
@EnableConfigurationProperties(ApiDecryptProperties.class)
|
@EnableConfigurationProperties(ApiDecryptProperties.class)
|
||||||
|
@ConditionalOnProperty(value = "api-decrypt.enabled", havingValue = "true")
|
||||||
public class ApiDecryptAutoConfiguration {
|
public class ApiDecryptAutoConfiguration {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|||||||
@ -11,6 +11,11 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|||||||
@ConfigurationProperties(prefix = "api-decrypt")
|
@ConfigurationProperties(prefix = "api-decrypt")
|
||||||
public class ApiDecryptProperties {
|
public class ApiDecryptProperties {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加密开关
|
||||||
|
*/
|
||||||
|
private Boolean enabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 头部标识
|
* 头部标识
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user