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