@Configuration @Import(value=EncryptorProperties.class) @ConditionalOnProperty(prefix="juhewu.data.encrypt", value="enable", havingValue="true") public class EncryptAutoConfiguration extends Object
| 构造器和说明 |
|---|
EncryptAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
DecryptionInterceptor |
decryptionInterceptor(IEncryptor encryptor,
EncryptorProperties properties)
mybatis 解密拦截器
|
IEncryptor |
defaultAesEncryptor(EncryptorProperties encryptorProperties)
默认的加解密
|
EncryptionInterceptor |
encryptionInterceptor(IEncryptor encryptor)
mybatis 加密拦截器
|
@Bean public IEncryptor defaultAesEncryptor(EncryptorProperties encryptorProperties)
encryptorProperties - 配置@Bean public DecryptionInterceptor decryptionInterceptor(IEncryptor encryptor, EncryptorProperties properties)
encryptor - encryptor@Bean public EncryptionInterceptor encryptionInterceptor(IEncryptor encryptor)
encryptor - encryptorCopyright © 2023 juhewu. All rights reserved.