SpringMVC and Hibernate using Javaconfig tempate