Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • I deleted my answer since it does not add value, this problem is to do with the JPA config, but I have not used spring-data in a while. Have you looked at docs.spring.io/spring-data/jpa/docs/1.4.3.RELEASE/reference/… Commented Apr 25, 2014 at 21:07
  • Yes the trouble is that I am trying to use a jpa repository during context startup and not thereafter... Thanks a lot anyway! Commented Apr 25, 2014 at 21:09
  • Thanks for the link too. I have read this already... Commented Apr 25, 2014 at 21:15
  • I didn't see an @ComponentScan anywhere. Commented Apr 25, 2014 at 22:00
  • 1
    Have you tried using the very latest version of Spring Data JPA (1.5.2) / Spring Data Commons (1.7.2)? We've fixed a tiny glitch in the area of type prediction that could play into scenarios like these. Commented Apr 28, 2014 at 6:15