본문 바로가기

코딩탐방기/스프링

[인텔리제이-스프링] org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'XXX' for bean class [com.xxx.xxx.service.impl.xxx] conflicts with existing, non-compatible bean definition of same nam..

728x90
반응형

 

Annotation-specified bean name 'xxx' for bean class [com.xxx.xxx] conflicts with existing, non-compatible bean definition of same name and class [com.xxx.xxx]

갑자기 잘 돌아가던 스프링 서버가 빌드되지않고 블라블라 에러를 뿜어냄 ㅋㅋㅋ

근데 수정한 소스가 1도 없는데 왜이러는건지...

찾아보니 out폴더를 지우거나 Gradle에서 clean을 하라고 함

이렇게 보이는 out폴더를 delete하고

gradle clean을 실행하면

정상적으로 실행된다 후후

근데 디자이너분 인텔리제이에선 out폴더가 없어서 gradle > clean만 했는데 

똑같이 잘해결됨 ㅋㅋㅋ

728x90
반응형