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对象,这样user对象上的@jsonigno