티스토리 뷰
에러메세지
서블릿 [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
- 오블완
- Java
- array
- 스프링오류
- n+1
- redisson 분산락
- Cannot construct instance of
- FetchJoin
- addFilterBefore
- Linux
- 티스토리챌린지
- 자바 어플리케이션 실행 과정
- QueryDSL
- dto 클래스 생성자
- JPA
- bucket4j
- junit5
- Git
- port
- MultipleBagFetchException
- MongoDB
- Kotlin
- 추상클래스
- 스프링 스케줄링
- checkout
- spring boot 3
- ChatGPT
- jvm warm-up 전략
- Spring Security
- 배열
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함