E
E
Eugene2018-05-30 11:28:58
Java
Eugene, 2018-05-30 11:28:58

How to start learning spring + hibernate?

Good afternoon. After studying java core, I realized that I need to learn spring + hibernate. Found the petclinic spring project - https://github.com/spring-projects/spring-petclinic . I partly understood what it is and how it works, but as I started trying to write something myself from scratch, I copy pom.xml, I create a component scanner, controllers, I seem to understand what is needed for what, and when I try to start the trouble.
/////////////////////////////////////////////////// ////////////
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-05-30 13:25:47.361 ERROR 6872 --- [ restartedMain] osbdLoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in org.springframework.hibernatelearning.person.PersonController required a bean of type 'org .springframework.hibernatelearning.person.PersonRepository' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.hibernatelearning.person.PersonRepository' in your configuration.
Process finished with exit code 0
Tell me where to start studying these frameworks in order to understand at least something in these errors.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-05-30
@evgdev

From reading the textbooks Ottinger, Minter, Linwood - "Beginning Hibernate" and Craig Walls - "Spring in Action"

A
Alexey Katorgin, 2018-06-07
@ProgMonster

The spring site has good guides on specific beans like spring rest, spring data, etc. For example : https://spring.io/guides/gs/rest-service/
There is also full documentation
https://spring.io/docs
. I don’t know, however, how relevant they are for the latest versions of frameworks.
Try also to create a project from scratch using the tool https://start.spring.io/
in which you select the components that you want to study.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question