类 HerodotusUserMixin

java.lang.Object
cn.herodotus.engine.oauth2.data.jpa.jackson2.HerodotusUserMixin

public abstract class HerodotusUserMixin extends Object

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

作者:
: gengwei.zheng
Date:
: 2022/2/17 21:57
  • 构造器详细资料

    • HerodotusUserMixin

      public HerodotusUserMixin()