Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils

在編譯的時候沒有錯誤,但是 用 Junit Test的時候,報下面的錯誤。

java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jdbc.core.StatementCreatorUtils

如下圖所示,後來發現是spring-core-4.0 的版本有點低了,

更新成spring-core-5.x,報了其他錯誤,更新成spring-core-4.3,問題得到解決

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章