티스토리 뷰

반응형

 

@FeignClient 어노테이션 사용 중에 아래와 같은 에러가 났다.

The bean 'errorDecoder', defined in class path resource [shop.janes/apis/config/PowerDnsConfig.class], could not be registered. A bean with that name has already been defined in class path resource [shop.janes/apis/config/FeignClientConfig.class] and overriding is disabled.

Action:

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

 

 

 

application.yml 파일에 아래처럼 추가해주면 해결

spring:
  main:
    allow-bean-definition-overriding: true

(참고 : https://seolahchloe.tistory.com/entry/Spring-%EC%98%A4%EB%A5%98%ED%95%B4%EA%B2%B0-Consider-renaming-one-of-the-beans-or-enabling-overriding-by-setting-springmainallow-bean-definition-overridingtrue)

 

 

 

 

 

반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
글 보관함