当Spring-Flex(也称Spring BlazeDS Integration)单独使用(没有Hibernate),或者与Hibernate3.x集成,都没有问题。但是遇到Hibernate4.x就出问题了,总抛异常java.lang.ClassNotFoundException: org.hibernate.collection.PersistentCollection。
实际上在Hibernate4当中,已经变为org.hibernate.collection.spi.PersistentCollection了。
解决办法:从以下地址下载附件,解压缩,放到工程代码中即可放心和Hibernate4整合了(目的是覆盖jar中的对应类)
http://download.youkuaiyun.com/download/spbdev/5054978
转自:http://blog.youkuaiyun.com/spbdev/article/details/8572466
本文提供了解决方案,通过下载并引入特定附件来覆盖Hibernate4.jar中的对应类,从而实现Spring-Flex与Hibernate4.x的顺利整合。解决在使用Hibernate4.x时出现的java.lang.ClassNotFoundException:org.hibernate.collection.PersistentCollection问题。
4675

被折叠的 条评论
为什么被折叠?



