【发布时间】:2015-07-05 12:22:25
【问题描述】:
我已经尝试了 SO this 和 this 以及许多其他提供的所有解决方案,但似乎没有任何解决方案可以解决我的问题。我遇到了异常
com.fasterxml.jackson.databind.JsonMappingException: could not initialize proxy - no Session (through reference chain: java.util.ArrayList[0]-
我不明白为什么 spring 使用 fasterxml.jackson 而之前的版本是从 codehaus 使用它
以前的春季版本 3.1.2.Release 当前春季版本 4.1.6.Release
【问题讨论】:
-
除了包名更新外,我猜这与事务(Hibernate,JPA等)有关,你能提供相关的堆栈跟踪和代码吗?
-
@hsluo 感谢您的回复,我已经通过将 codehaus jackson 更改为 fasterxml jackson 解决了这个问题
标签: java spring spring-mvc