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로 스프링에 빈을 등록해야 한다.
'Develop > Spring' 카테고리의 다른 글
[2-2.영속계층, 비즈니스계층]BoardService/BoardServiceImpl의 설정 (0) | 2018.08.23 |
---|---|
[오류]The reference to entity "characterEncoding" must end with the ';' delemiter (0) | 2018.08.19 |
[오류]경로깨짐 (0) | 2018.08.19 |
[2-2.영속계층, 비즈니스계층]2.DAO생성과 XML Mapper 작업 (0) | 2018.08.18 |
[2-2.영속계층, 비즈니스계층]1.BoardVO 작성 (0) | 2018.08.18 |
댓글