posted 7 years ago
The problem lies in your sessionfactory.
Why don't you simply use Spring Boot, it will do all the configuration for you.
Add the spring-boot-starter dependency, remove your dispatcherservlet, web.xml and application-context.xml and put the following application.properties in your resource folder:
And that should do it
It's good to be able to use someting, it's better to understand how it works.
www.goanation.net