note that i have noticed that all spring and hibernate verisons are not compatible.
below versions have worked for me so i think they are compatible .
if you are using some other versions and getting
java.lang.NoClassDefFoundError
then it means that they are not compatible.Mostly it’s because Hibernate classes are moved from one package to another causing this error.
For example
org.hibernate.engine.FilterDefinition
class is moved to
org.hibernate.engine.spi.FilterDefinition
本文探讨了Spring和Hibernate不同版本间的兼容性问题,并提供了一些建议版本以避免出现如`java.lang.NoClassDefFoundError`等错误。通常这类问题是由于Hibernate的一些类从一个包移动到了另一个包导致。
704

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



