I have simple Spring 4 WebMVC app (Java-config), and I want to add JPA. But when I try to run app (as deloyed on Tomcat) I get: What can be a source of error?
in this question I posted a full example how to unit test a spring controller which needs an autowired JpaRepository.