[스프링 빈 충돌] BeanDefinitionStoreException

Question Murder·2023년 8월 7일
0

개발작업
1. 파일추가
2. build.gradle spring Retry 라이브러리 추가

오류메세지

org.springframework.beans.factory.BeanDefinitionStoreException: 
Failed to parse configuration class [net.g1project.ecp.web.batch.EcpBatchApp]; 
nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: 
Annotation-specified bean name 'restTemplateConfiguration' for bean class 
[..충돌나는 위치..] conflicts with existing, 
non-compatible bean definition of same name and class
[..여기랑 위치랑 동일하다는 내용..]

RestTemplateConfiguration 동일한 이름의 파일이 중복되어 있어 충돌이 발생하는 이유

nested exception

  • 컴파일상으로는 문제없다가 구동시킬 때 에러발생

gradle.build 라이브러리 추가

compile 'org.springframework.retry:spring-retry:1.3.4'

spring Retry 라이브러리를 추가해서 재시도 및 실패 처리 관련 기능을 제공하는데 사용하는 라이브러리

profile
물음표 살인마

0개의 댓글

관련 채용 정보