스프링 에러 메시지
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChain' defined in class path resource [com/example/backend/global/config/SecurityConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Factory method 'filterChain' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcHandlerMappingIntrospector' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'socialingController' method
급해서 내 코드를 복붙해서 갖다쓰니까 이런 문제가 발생했다..
컨트롤러의 매핑 경로가 중복되어서 발생한 오류라서 그냥 경로 또는 메서드를 바꿔주면 된다.
'Web > Spring' 카테고리의 다른 글
DTO의 사용범위는 어디까지? 또, DTO 변환은 어디서? (4) | 2022.09.24 |
---|---|
[Error] Update/delete queries cannot be typed (0) | 2022.09.06 |
테스트용 더미 데이터 넣기 (no entitymanager with actual transaction available for current thread) (0) | 2022.08.09 |
검증 - 직접구현부터 Spring Validation 까지 (0) | 2022.08.05 |
spring-boot-devtools (0) | 2022.08.04 |