1 2 3 4 5 6 7 8 9 | 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 |
1 | Could not autowire field: private persistence.BoardDAO org.zerock.test.BoardDAOTest.dao; |
BoardDAO에서 field를 자동 주입할 수 없다
-> 사용되는 필드의 경로가 잘못되어 있어 경로 수정으로 해결
댓글