티스토리 뷰
에러메세지
서블릿 [appServlet]을(를) 위한 Servlet.init() 호출이 예외를 발생시켰습니다.
ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
에러메세지 상세
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'booklistController': Unsatisfied dependency expressed through field 'blService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.bookforyou.bk4u.booklist.model.service.BooklistService' available: expected at least 1 bean
which qualifies as autowire candidate. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
원인
ServiceImpl 클래스에 @Service 어노테이션을 작성하지 않았다.
해결방법
ServiceImpl 클래스에 @Service 어노테이션 작성
@Service
public class BooklistServiceImpl implements BooklistService{
반응형
'error log' 카테고리의 다른 글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Kotlin
- 추상클래스
- QueryDSL
- MultipleBagFetchException
- redisson 분산락
- JPA
- addFilterBefore
- 스프링 스케줄링
- 티스토리챌린지
- Spring Security
- spring boot 3
- jvm warm-up 전략
- Linux
- dto 클래스 생성자
- 오블완
- Cannot construct instance of
- array
- junit5
- ChatGPT
- FetchJoin
- 배열
- MongoDB
- bucket4j
- Java
- port
- 스프링오류
- 자바 어플리케이션 실행 과정
- n+1
- Git
- checkout
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함