spring data jpa boot thymeleaf hibernate manytoone 双向关联 java.lang.StackOverflowError: null
我在前端使用[[${user}]]
获取了 controller中map.put("user",user)的值,出现了这个错误,我的user和另外一个类存在 manytoone的关系,
因为thymeleaf序列化时并不是使用的jackson所以使用@jsonignore对于thymeleaf来说是无效的,
所以我的解决办法是 自己手动 使用jackson解析user对象,这样u
原创
2018-02-02 01:52:39 ·
902 阅读 ·
0 评论