WEB/Back-End 🌚
[Spring] ERROR: org.springframework.web.servlet.DispatcherServlet
narang111
2022. 10. 5. 15:51
WARN : org.springframework.web.context.support.XmlWebApplicationContext - ....
ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'infoController': Unsatisfied dependency expressed through field 'reviewService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.review.myapp.ReviewService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
....
at java.base/java.lang.Thread.run(Thread.java:834)
*Service 구현체인 *ServiceImpl class에 @Service 어노테이션을 안 붙임