에러노트

에어비앤비 트러블 슈팅

wonderson 2022. 7. 4. 02:59
반응형

에러메시지 :

Ambiguous mapping. Cannot map 'accommodationController' method

-구글링으로 찾아보니 controller에서 메서드도 같고 URL도 똑같은 API가 두개 만들어져서 생긴 에러 메시지라고 해서 확인해보니 정말 똑같은 메서드에, URL도 같은 API가 있어서 그 부분을 수정했습니다.

 

 

완전 상세한 에러메시지

원인
https://yeo-eunny.tistory.com/66

에러메시지

creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/a

nnotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested excepti

on is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 's

pringSecurityFilterChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException

: Error creating bean with name 'mvcHandlerMappingIntrospector' defined in class path resource [org/springframework/bo

ot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method fai

led; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requ

estMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMv

cAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.Ill

egalStateException: Ambiguous mapping. Cannot map 'accommodationController' method com.sparta.airbnb_clone_be.c

ontroller.AccommodationController#readMain()

 

반응형