티스토리 뷰
backend/Spring-Boot
Same class different classloader causing NoSuchBeanDefinitionException 문제
ryudung RyuDung 2017.11.14 23:21문제점
rome를 통한 rss 개발을 진행하고 있었다.
헌데..
rss 내부 라이브러리 메소드는 잘 동작하는데..
rss 라이브러리를 상속받아서 구현한 코드는 동작이 안되는것이 였다..!!
동료분과 함께 디버깅을 아무리해보아도 알수 없었다..
드디어 디버깅중 라이브러리와 커스터마이징한 소스가 다른 클래스로더를 사용하고 있다는것을 발견하게 되엇다..
발견한 문제는 spring-devtools가 커스터마이징한 클래스를 RestartClassLoader라는 녀석으로 로드하는 것이 문제였다!!
해결방안
----------------------------------------------------
spring-devtool을 제외시키고 다시 실행하니 잘 실행 되었다!!! 으아!!!!!
참고할 사이트
https://github.com/spring-projects/spring-boot/issues/3316
https://github.com/spring-projects/spring-boot/issues/4636
'backend > Spring-Boot' 카테고리의 다른 글
Same class different classloader causing NoSuchBeanDefinitionException 문제 (0) | 2017.11.14 |
---|
공유하기 링크
댓글
공지사항
최근에 달린 댓글
- Total
- 10,172
- Today
- 4
- Yesterday
- 50
TAG
- 스프링 @PropertySource
- 스프링 PropertyPlcaceholderConfigurer
- spring-devtools
- 스프링 Enviroment
- Same class different classloader
- 스프링 소개
- 인텔리j threed
- intellij threed
- 스프링 프로퍼티
- spring @PropertySource
- spring Property
- spring 실시간 reload
- spring Enviroment
- spirng
- 스프링
- spring-security
- intellij visualvm
- 스프링 PropertySource
- spring introduction
- spring reload property
- common-configuration2
- apache common-configuration2
- 스프링 properties
- spring PropertyPlcaceholderConfigurer
- spring security DB
- PropertyPlcaceholderConfigurer
- Spring
- spring properties
- spring threed
- spring propertySource