No exception of type DataAccessException can be thrown; an exception type must be a subclass of Throwable

前端 未结 5 900
旧巷少年郎
旧巷少年郎 2021-01-17 13:42

My source code like below. It has a error, \"No exception of type DataAccessException can be thrown; an exception type must be a subclass of Throwable\".

I can\'t un

5条回答
  •  南方客
    南方客 (楼主)
    2021-01-17 14:26

    I had this same issue when I upgraded to 5.X.X version. I have added Spring-core.jar file and it worked fine for me. Just adding this here because it may help some one. Spring txn jar , dao jar and spring core are must.

提交回复
热议问题