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 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.