Spring MVC with JPA: Not able to instantiate JpaRepository from a jar
问题 I am trying to import a standard spring project P1 into a web project P2 and I am implementing the web aspect of P1 in P2. I have imported all resources of P1 in P2 as P1.jar Have explicitly imported the application context file as well using <import-resource> which happens successfully. But the JpaRepositories does not get autowired in P2. It doesn't seem to be in the context of P2. Can anyone suggest what I might be missing here. UPDATE: 25Nov2016 P1-ApplicationContext.xml <?xml version="1