본문 바로가기
Develop/Spring

[오류]Injection of autowired dependencies failed

by jaekk 2018. 8. 19.

1
2
3
4
5
org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'org.zerock.test.BoardDAOTest': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private persistence.BoardDAO org.zerock.test.BoardDAOTest.dao;
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [persistence.BoardDAO] found for dependency: 
expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}
cs

자동 주입 실패






빈을 스프링에 주입하지 않았다 -> @Repository로 스프링에 빈을 등록해야 한다.


댓글