jackson序列化异常
因为我的实体类继承了 spring security 中的 UserDetail 并且实现了 public Collection<? extends GrantedAuthority> getAuthorities() 方法。返回的值jackson解析不了,所以报异常。
解决办法
忽略字段不序列化字段
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Reques...
最新推荐文章于 2024-06-25 15:47:04 发布