Class HerodotusUserMixin
java.lang.Object
cn.herodotus.engine.oauth2.data.jpa.jackson2.HerodotusUserMixin
Description: 自定义 UserDetails Mixin
This mixin class helps in serialize/deserialize User. 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
- Author:
- : gengwei.zheng
- Date:
- : 2022/2/17 21:57
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HerodotusUserMixin
public HerodotusUserMixin()
-