🖥

[Spring Boot] Field in required a bean of type '' that could not be found.

망록 2022. 7. 4.

 

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

Description:

Field chatDao in ##########.service.xxxxxx required a bean of type '@@@@@@@@@@@.dao.ChatDao' that could not be found.


Action:

Consider defining a bean of type '@@@@@@@@@@@@.dao.ChatDao' in your configuration.

 

 

 

 

 

구글링 해보니 어노테이션을 잘못 붙여서,

또는 

 

@ComponentScan(basePackages = {})
@SpringBootApplication(scanBasePackages = {})

이렇게 해서 못 찾고있는 패키지를 스캔하게 만들어주는 방법으로 해결한 분들이 많았는데,

나의 경우에는 implement 하나 잘못해서 생기는 문제였다 

 

 

댓글