• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring Data example not working for me

 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Starting with the "official" Quick Start example here: http://projects.spring.io/spring-data/#quick-start

I use start.spring.io to create a project with 1] DevTools, 2] JPA and 3] H2

Using IntelliJ IDEA open the project, and the test driver class executes with no errors.

tFollowing the instuctions on the Quick Start page I: update pom.xml, create Employee.java, and create EmployeeRepository.java

Now when I run this I get



I can't find any place where I have "employeeRepository", lower case "e", as it appears in that log message.

I assume that that web page isn't giving me exactly all the changes I need to make.  But I don't know how to trouble shoot this.

Thanks





 
William Barnes
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Found a more "complete" example, so going to just move on to that.  https://spring.io/guides/gs/accessing-data-jpa/

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
suppose you have missed the a annotation on employeeRepository or . It would be helpful if you could post the full code you have tried. But There are plenty of Spring Data Examples on git hub https://github.com/spring-projects/spring-data-examples
reply
    Bookmark Topic Watch Topic
  • New Topic