[Spring] - Spring Boot 환경에서 Bean 생성시 주의할 점
Spring Boot로 Bean을 생성시 Bean이 생성되지 않고 다음과 비슷 예외메세지가 본 적이 있을 것이다. NoSuchBeanDefinitionException: No qualifying bean of type 'com.kjh.component.StudyComponent' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} StudyComponent 타입의 Bean을 찾지못했다는 메세지인데 왜 이런 메세지가 나오는지 예제코드와 함꼐 확인해보자. ..
Spring
2021. 5. 28. 18:24