chenjiahe
2022-06-27 a0ad14b0a0fb60604b0a9cf978a537e64479a8d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.hx.bean.annotations;
 
import com.hx.mybatis.aes.springbean.ConstantBean;
import com.hx.mybatis.aes.springbean.InitMysqlData;
import com.hx.mybatis.aes.springbean.MySqlInterceptor;
import com.hx.mybatis.aes.springbean.VariableAesKey;
import com.hx.security.request.RequestRestriction;
import org.springframework.context.annotation.Import;
 
import java.lang.annotation.*;
 
/**自动加Mysql的AES加密程序
 *这里的Import的两个类就是需要加载的bean,这样就可以通过简单的添加一个注解来加载自己自定义的bean了,而且可
 *以是很多个,可以打到jar包里面通过Maven引入都是ok的;
 * @author CJH
 * @date 202-06-17
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({ConstantBean.class, InitMysqlData.class, MySqlInterceptor.class, VariableAesKey.class})
public @interface MysqlAutoAes {
 
 
}