spring+hibernate整合

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
發佈了39 篇原創文章 · 獲贊 10 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章