[스프링] 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})

You may also like...

답글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.