일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 로그인
- 싱글톤
- 시큐리티로그인
- 목록
- sql
- 시큐리티 로그인
- 2차원배열
- 리눅스
- 시큐리티
- 시큐리티 로그아웃
- codingtest
- springboot
- 프로그래머스
- 반복문
- 스프링 부트
- css
- JAVA11
- Linux
- security
- 코딩테스트
- input태그
- springSecurity
- html
- programmers
- Spring boot
- 소스트리
- StyleSheet
- gradle
- javascript
- java
- Today
- Total
JAVAIARY
org.springframework.beans.factory.UnsatisfiedDependencyException 오류 본문
org.springframework.beans.factory.UnsatisfiedDependencyException 오류
shiherlis 2022. 12. 19. 17:501. 문제 : 빌드가 안돼서 오류가 뜸
2.원인
Context initialized 이벤트를 [org.springframework.web.context.ContextLoaderListener] 클래스의 인스턴스인 리스너에 전송하는 동안 예외 발생
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'customUserDetailsService': Unsatisfied dependency expressed through method 'setMemberMapper' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'kr.co.springsecurity.member.MemberMapperInterface' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:767)
MemberMapperInterface 에 @Repository annotation을 작성해 주지 않아서 의존성 주입이 안됨
3. 해결
@ Repository annotation 추가로 해결
'selfEdu > 극약처방 ) Error' 카테고리의 다른 글
DBeaver DB 안 보일 때 (0) | 2023.02.20 |
---|---|
The Tomcat server configuration at \Servers\mvc-config is missing 오류 (0) | 2022.12.26 |
the method {method} of type {class} must override a superclass method 오류 (0) | 2022.12.19 |
Logger cannot be resolved to a type 문제 (1) | 2022.12.15 |
mybatis INTERVAL 구문오류 해결 (0) | 2022.11.23 |