UL :)
UL의 개발 블로그
UL :)
전체 방문자
오늘
어제
  • 분류 전체보기 (220)
    • 일상 (1)
    • 회고록 (7)
    • ChatGPT 아카이빙 (0)
    • PS(Java) (114)
      • 백준 (37)
      • 인프런 강의 문제 (77)
    • Web (69)
      • Spring (18)
      • JPA (7)
      • JSP (9)
      • HTML5 (12)
      • CSS (19)
      • HTTP (0)
      • 보안 (2)
    • Language (5)
      • Java (3)
      • JS (1)
      • Python (1)
    • Git, GitHub (4)
    • Settings (18)
      • IntelliJ (7)
      • Eclipse (2)
      • VSCode (3)
      • Android Studio (1)
      • VMware (2)
      • Mac (0)
    • Etc (1)

블로그 메뉴

  • 홈
  • 태그

공지사항

인기 글

태그

  • @JoinColumn
  • HandlerMethodArgumentResolver
  • SEQUENCE 전략
  • @RequestParam
  • IDENTITY 전략
  • ViewName반환
  • consumes
  • BOJ
  • argumentresolver
  • HttpMessageConverter
  • produces
  • TABLE 전략
  • 영속성컨텍스트
  • 동일성보장
  • @GetMapping
  • ReturnValueHandler
  • 1차 캐시
  • EntityManagerFactory
  • @Table
  • 백준
  • 요청헤더
  • @Id
  • @Column
  • 정렬
  • 영속성
  • ORM
  • 엔티티 매핑
  • @PostMapping
  • JPA
  • @ManyToOne

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
UL :)

UL의 개발 블로그

Web/Spring

Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource

2022. 11. 11. 19:48

스프링 에러 메시지

 

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
    'Web/Spring' 카테고리의 다른 글
    • DTO의 사용범위는 어디까지? 또, DTO 변환은 어디서?
    • [Error] Update/delete queries cannot be typed
    • 테스트용 더미 데이터 넣기 (no entitymanager with actual transaction available for current thread)
    • 검증 - 직접구현부터 Spring Validation 까지
    UL :)
    UL :)
    백엔드 개발자를 목표로 달리고 있습니다🔥

    티스토리툴바