How can I store and load an encrypted value using custom annotation
问题 I am new to Java custom annotations I am developing a custom annotation which encrypt and decrypt a string and store it in database using spring and mongodb and for encryption I am using jasypt. I am not getting the exact procedure to do so. My code. Entity public class Demo { @Id private Long id; private String somethingPublic; @EncryptDemo() private String somethingPrivate; //getter setter } custom annotation @Target({ ElementType.METHOD, ElementType.FIELD }) @Retention(RetentionPolicy