提交 | 用户 | age | ||
e29546 | 1 | package com.hx.common.annotations; |
C | 2 | |
3 | import java.lang.annotation.*; | |
4 | ||
5 | /** | |
6 | * 指定mysql的AES加密字段 | |
7 | * @author CJH | |
8 | */ | |
9 | @Target({ElementType.FIELD}) | |
10 | @Retention(RetentionPolicy.RUNTIME) | |
11 | @Documented | |
12 | public @interface MysqlHexAes { | |
13 | /**秘钥字段*/ | |
14 | String aesKeyField() default ""; | |
15 | /**秘钥*/ | |
16 | String aesKey(); | |
17 | /**查询解密*/ | |
18 | boolean selectDec() default false; | |
19 | ||
20 | } |