[ERROR] 2020-07-09 19:19:18,057 [http-nio-8889-exec-15] c.c.c.e.BusinessExceptionHandler - [192.168.60.80]:[/]:[/woportalapi/cuuser/auth/userinfo GET] org.springframework.security.authentication.InternalAuthenticationServiceException: Could not read JSON: Cannot construct instance of `com.信息n.security.user.JwtUser` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
at [Source: (byte[])"{"@class":"co1.11.security.user.JwtUser","username":"11","authorities":["java.util.ArrayList",[]]}"; line: 1, column: 49]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.1on.security.use
SpringBoot入门到精通-JwtUser` (no Creators, like default construct, exist): cannot deserialize from Objec
最新推荐文章于 2024-09-19 10:19:30 发布
在尝试使用SpringBoot进行身份验证时遇到了一个内部错误:org.springframework.security.authentication.InternalAuthenticationServiceException,原因是无法从JSON对象中构造com.信息n.security.user.JwtUser实例,因为它缺少默认构造函数。解决方案是在JwtUser类中添加默认构造函数。
摘要由CSDN通过智能技术生成