goupan
2024-04-03 5506e9a45e717ffcb67ec313b5a4e8206d9b3a39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cn.stylefeng.roses.kernel.security.database.annotation;
 
import java.lang.annotation.*;
 
/**
 * 需要加解密字段注解(该字段自动加解密,数据库是密文,查看时是明文)
 * <p>
 * 该注解作用范围在字段上面(该类需要加 {@link ProtectedData} 注解)
 *
 * @author majianguo
 * @date 2021/7/5 9:18
 */
@Documented
@Inherited
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ProtectedField {
 
}