球衣从1.8升级到球衣2.33.
这里有踪迹
19:58:29,122 [ INFO] -1:LoginDaoImpl.getUserByUserName: - OUT dao : LoginDaoImpl app side getUserByUserName method.
10-Apr-2023 19:58:29.164 SEVERE [http-nio-8080-exec-2] org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo MessageBodyWriter not found for media type=application/json, type=class in.wm.common.authentication.models.UserDetailsJson, genericType=class in.wm.common.authentication.models.UserDetailsJson.
19:58:29,184 [ INFO] -1:GenericException.toResponse: - In Generic Exception Handler - WM-APP
19:58:29,184 [ INFO] -1:GenericException.toResponse: - , Exception message is:--HTTP 500 Internal Server Error
10-Apr-2023 19:58:29.207 SEVERE [http-nio-8080-exec-2] org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo MessageBodyWriter not found for media type=application/json, type=class in.wm.common.util.BaseResponse, genericType=class in.wm.common.util.BaseResponse.
10-Apr-2023 19:58:29.207 SEVERE [http-nio-8080-exec-2] org.glassfish.jersey.server.ServerRuntime$Responder.process Error occurred when processing a response created from an already mapped exception.
19:58:29,235 [ INFO] -1:SecurityFilter.doFilter: - Exception: while validating the token javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
任何建议,已在相应的 POJO 上添加 @JsonProperties 注释。
制作所有库,导入更改。添加了所有必需的依赖项,现在出现错误 MessageBodyWriter not found
上下文:
Java 8
Jersey 2.33版本所有依赖,Tomcat9,添加Moxy,server,client依赖
任何建议,已尝试在 pojo @JsonProperties 注释中的@XmlRootElemt 对各自的 POJO。