기타/에러

[기타] Annotation-specified bean name '???' for bean class conflicts with existing non-compatible bean definition of same name and class

hrming 2024. 9. 9. 09:47

 

Controller 폴더명을 바꾸고 나서, 아래와 같은 에러가 떴다.

( 해당 Controller는 사용하지도 않아서, 삭제했는데도 불구하고 계속 동일한 에러가 떴다. 😭.. )

Annotation-specified bean name '???Controller' for bean class conflicts with existing non-compatible bean definition of same name and class

 

 

해결방법: 프로젝트 claen & build,  war 폴더 삭제 후 다시 실행


참고 및 출처 :

https://github.com/jojoldu/freelec-springboot2-webservice/issues/271

 

[오류] indexController 폴더 변경후 bean중복 오류 · Issue #271 · jojoldu/freelec-springboot2-webservice

어떤 오류인가요? 오류설명: 안녕하세요 indexController 클래스위치를 src.main.java.com.cocicalc.web.dto 로 잘못되어 있어서 src.main.java.com.cocicalc.web 로 옮겼는데 이후로 Application.java를 구동하면 org.springfram

github.com