https://resian-programming.tistory.com/25
위로 아래 에러를 해결했다.
https://covenant.tistory.com/243
이걸 실습하다가 발생한 문제.
Field authorRepository in com.inseouls.inseoul.service.LibraryService required a bean of type 'com.inseouls.inseoul.repository.AuthorRepository' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.inseouls.inseoul.repository.AuthorRepository' in your configuration.
https://oingdaddy.tistory.com/254
Springboot 에서 @ComponentScan 설정 및 사용법
이전 Xml Config 방식에서 ComponentScan을 사용하는 방법은 다음과 같았다. applicationContext를 구성할때 이렇게 명시적으로 내가 읽어들여야하는 component들이 있는 package를 넣어줬다. 하지만 Springboot에..
oingdaddy.tistory.com
@ComponentScan와 관련되서 위의 블로그를 보는게 매우 좋을듯 하다.
내가 적어 놓은 에러는 컴포넌트가 스캔이 되지 않는것과 관련되어 있다.