[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a bean of type ~~ that could not be found.

2024. 4. 8. 12:53개발공부

이제 시작인데...

 

 ERROR ???????????????


***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.bigbell.accountbook.rest.AccountRestController required a bean of type 'com.bigbell.accountbook.service.TodayAccountService' that could not be found.


Action:

Consider defining a bean of type 'com.bigbell.accountbook.service.TodayAccountService' in your configuration.

 


 

위 에러는 Entity, Service, DAO를 구성할 때 생길 수 있는 에러이다.

내용은 Bean이 발견되지 않는다는 건데 클래스 위에 빈을 식별하게 도와주는 어노테이션을 넣지 않아서 그런 것이다.

 

Entity 클래스에 @Entity 어노테이션

Sevice 클래스에 @Service 어노테이션

Repository 클래스에 @Repository 어노테이션

 

가 있는지 다시 한 번 잘!!! 확인해보자.

하.....

 
 

 

'개발공부' 카테고리의 다른 글

갑자기 build 실패 시 (해결)  (0) 2024.04.25
Intelli J - 라이센스 등록 및 변경  (0) 2024.04.12
Thymeleaf  (0) 2024.04.04
JDBC  (0) 2024.04.04
JSP & PHP & ASP  (0) 2024.04.04