@Configuration @EnableConfigurationProperties(value=EncryptProperties.class) @Import(value=EncryptKeyController.class) @ConditionalOnProperty(value="encrypt.enable", havingValue="true", matchIfMissing=true) public class EncryptConfiguration extends Object
| 构造器和说明 |
|---|
EncryptConfiguration(EncryptProperties encryptProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
DecryptRequestBodyAdvice |
decryptRequestBodyAdvice()
配置请求加密
|
EncryptResponseBodyAdvice |
encryptResponseBodyAdvice()
配置请求解密
|
public EncryptConfiguration(EncryptProperties encryptProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean public EncryptResponseBodyAdvice encryptResponseBodyAdvice()
@Bean public DecryptRequestBodyAdvice decryptRequestBodyAdvice()
Copyright © 2024. All rights reserved.