Kotlin & JPA
[Kotlin] The bean 'errorDecoder', defined in class path resource, could not be registered. 에러 해결
Jane Kwon
2022. 1. 21. 17:28
반응형
@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
반응형