728x90
반응형
이클립스에서 스프링 프레임워크로 작업하던 중
setting.xml의 <context:component-scan base-package="..."/> 부분에서 에러가 나는 것을 확인하였습니다.
에러 로그는 Failed to read candidate component class 이였는데, BeanDefinitionStoreException 관련해서 에러가 발생하였습니다.
스프링 내에서 의존성 충돌 때문에 생기는 문제라고 하는데, 아래 글을 참고하여 해결하였습니다.
BeanDefinitionStoreException Failed to read candidate component class
Can someone tell me how to solve this issue? I have narrowed down the problem to the pom.xml file. My project works but when I add the following dependency I get an error ...
stackoverflow.com
사이트 안의 글은 스프링 버전이 낮아서 생기는 문제였는데, 저의 경우는 5.x를 사용했으니 아마 버전이 오히려 높아서(?) 생기는 문제였던 것 같습니다.
pom.xml 에 다음의 버전으로 dependency를 걸어서 해결하였습니다.
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.2.6.RELEASE</version>
</dependency>
</dependencies>
728x90
반응형
'버그잡기' 카테고리의 다른 글
[Lettuce] LettuceConnectionFactory connection timeout deprecated (0) | 2022.03.13 |
---|---|
[AWS S3] aws-sdk에서 S3에 접근 시 Access Denied 해결 방법 (0) | 2021.06.23 |
[React Native] yarnpkg exited with non-zero code: 1 에러 해결 (0) | 2021.02.13 |
[머신러닝] Colab 에서 module 'tensorflow' has no attribute 'set_random_seed' 에러 날 때 텐서플로우 버전 낮추는 방법 (0) | 2021.01.10 |
[Android] 안드로이드 스튜디오 localhost 연결 에러 (0) | 2021.01.05 |