[스프링] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource []: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘basicErrorController’ method
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource []: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘basicErrorController’ method
requestMapping 별도로 오버라이딩해서 자동 Error페이지가 중복되어서 그런가?
아래 어노테이션을 SpringBoot main메서드에 추가해준다.
@EnableAutoConfiguration(exclude = {ErrorMvcAutoConfiguration.class})
최근 댓글