Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Model1
- 롬복
- toUpperCase
- 인텔리제이
- 서블릿
- Lombok
- 서브쿼리
- 기술 대비
- @Controller
- 인프런
- 김영한
- 메이븐
- DDL
- Join
- select
- JSP
- AOP
- 뉴렉처
- 코딩테스트
- 프로그래머스
- 스프링
- STS
- 자바
- @RestController
- Model2
- MVC
- 프레임워크
- SQL
- MVC2
- 코테
Archives
- Today
- Total
Heestory
org.springframework.beans.factory.UnsatisfiedDependencyException 본문
개발(~국비)/Spring
org.springframework.beans.factory.UnsatisfiedDependencyException
까만밀가루 2022. 7. 20. 19:07org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.jhta.spring02.service.productService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
구글링 해도 딱히 뚜렷한 방법이 안나와서 매번 프로젝트 삭제하고 새로운 마음으로 다시하다 이러다 끝도 없겠다 싶어 강사님께 여쭤봄
service와 controller가 제대로 연결되지 않아 생기는 에러 메세지
확인해야 할 것들
1.@service 어노테이션 확인
2.@controller 의 controller에서 서비스의 @Autowired
3.root-context의 context
base-package 에 기본을 잘 썼는가?
'개발(~국비) > Spring' 카테고리의 다른 글
DefaultHandlerExceptionResolver No converter found for return value of type: class java.util.ArrayList (0) | 2022.08.01 |
---|---|
Security 기본 설정 (0) | 2022.07.21 |
javaconfig 설정 기본1 (0) | 2022.07.19 |
java.sql.SQLSyntaxErrorException: ORA-00917: 누락된 콤마 (0) | 2022.07.16 |
ContextLoaderListener 에러 (0) | 2022.07.15 |