could not be registered. A bean with that name has already been defined in class path resource

한지연·2023년 5월 29일
0

❗️ 문제 상황 및 원인

Spring security 설정 중 could not be registered. A bean with that name has already been defined in class path resource 해당 문제 발생

🗝️ 해결 방법

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

spring이 알려준 해결방안대로 application.yml에 true 설정해주기

spring:
  main:
    allow-bean-definition-overriding: true
profile
배우고 활용하는 것을 즐기는 개발자, 한지연입니다!

0개의 댓글