티스토리 뷰

에러메세지

서블릿 [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{

 

 

반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
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
글 보관함