Realize field decryption and decryption through annotations

By using annotations and adopting a configurable method, multiple ways of deciphering and reappearing on a single field can be realized.

first look at the effect

The first step is to define the field annotation and enumeration of decryption methods


import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.lang.annotation.ElementType;
import java.lan

Guess you like

Origin blog.csdn.net/weixin_39355187/article/details/129394590