에러의 타입에 mapper 가 있다면...
available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
이런 문구가 있으면 한 번 생각해봐야 하는 것이
mapper 를 새로 설정하진 않았는지? 이다.
mapper를 새로 설정했다면
root-context 의 mybatis-scan 을 추가해서 mapper 를
<mybatis-spring:scan base-package="com.spring.jj9.member.mapper"/>
이런식으로 추가해서 등록해보자
'Java (국비지원 당시 공부했던 글) > 자바 관련 에러' 카테고리의 다른 글
Spring - org.springframework.beans.factory.BeanCreationException 에러 해결 사례 (ojdbc 추가) (0) | 2022.08.18 |
---|---|
Deployment Assembly 없음, 비활성화 시 해결 법 (0) | 2022.07.27 |