|
|
@ -8,6 +8,7 @@ import org.dromara.common.encrypt.interceptor.MybatisEncryptInterceptor;
|
|
|
|
import org.dromara.common.encrypt.properties.EncryptorProperties;
|
|
|
|
import org.dromara.common.encrypt.properties.EncryptorProperties;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
@ -19,7 +20,8 @@ import org.springframework.context.annotation.Bean;
|
|
|
|
* @version 4.6.0
|
|
|
|
* @version 4.6.0
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@AutoConfiguration(after = MybatisPlusAutoConfiguration.class)
|
|
|
|
@AutoConfiguration(after = MybatisPlusAutoConfiguration.class)
|
|
|
|
@EnableConfigurationProperties(EncryptorProperties.class)
|
|
|
|
@EnableConfigurationProperties({EncryptorProperties.class, MybatisPlusProperties.class})
|
|
|
|
|
|
|
|
@ConditionalOnClass(MybatisPlusAutoConfiguration.class)
|
|
|
|
@ConditionalOnProperty(value = "mybatis-encryptor.enable", havingValue = "true")
|
|
|
|
@ConditionalOnProperty(value = "mybatis-encryptor.enable", havingValue = "true")
|
|
|
|
public class EncryptorAutoConfiguration {
|
|
|
|
public class EncryptorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|