类 HerodotusUserMixin
java.lang.Object
cn.herodotus.engine.oauth2.core.jackson2.HerodotusUserMixin
Description: 自定义 UserDetails Mixin
This mixin class helps in serialize/deserializeUser. This class also register a custom deserializer UserDeserializer to deserialize User object successfully. In order to use this mixin you need to register two more mixin classes in your ObjectMapper configuration.
SimpleGrantedAuthorityMixin
UnmodifiableSetMixin
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new CoreJackson2Module());
See Also: UserDeserializer, CoreJackson2Module, SecurityJackson2Modules- 作者:
- : gengwei.zheng
- Date:
- : 2022/2/17 21:57
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
HerodotusUserMixin
public HerodotusUserMixin()
-