Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Data example not working for me  RSS feed

 
William Barnes
Ranch Hand
Posts: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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: 1049
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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/

 
Rajith Pemabandu
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!