1.出错地方
使用SpringBoot JPA获取的对象返回前端时报错:Debug的时候在Controller以下都没有问题(整个类中所有属性都有值),在返回前端的Debug时,发现报错在ServletInvocableHandlerMethod中,处理返回值时报错:
随后,查看此时的数据和异常信息:
2.异常信息
下面是主要的异常信息:
2019-07-28 21:45:39.117 ERROR 21008 --- [nio-8803-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet
[dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.http.converter.HttpMessageConversionException:
Type definition error:
[simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyIntercepto