Daniel Demesmaecker wrote: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
I can't use spring boot, I need to done it in same way