javax.servlet.ServletException: 서블릿 [dispatcher]을(를) 위한 Servlet.init() 호출이 예외를 발생시켰습니다.
근본 원인 (root cause)
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/spring/servlet-context.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'noticeController' for bean class [com.newlecture.web.controller.customer.NoticeController] conflicts with existing, non-compatible bean definition of same name and class [com.newlecture.web.controller.api.NoticeController]
근본 원인 (root cause)
org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'noticeController' for bean class [com.newlecture.web.controller.customer.NoticeController] conflicts with existing, non-compatible bean definition of same name and class [com.newlecture.web.controller.api.NoticeController]
해당 클래스를 bean생성하는 어노테이션
@Component
@Controller
@Service
등 뒤에 ("id") id를 직접 지정해주면 해결된다.
'메모 > 에러 메모' 카테고리의 다른 글
[ html ] js를 안 읽어오는 문제 (0) | 2021.03.01 |
---|---|
[IntelliJ] error: cannot find symbol (0) | 2021.01.21 |
Circular View Path Error (& 500 error) (0) | 2021.01.14 |
git non-fast-foward 에러 (0) | 2021.01.09 |
[ 스프링 ] BeanCreationException (0) | 2021.01.02 |