Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[오류] indexController 폴더 변경후 bean중복 오류 #271

Closed
cjsxorud111 opened this issue Feb 19, 2020 · 5 comments
Closed

[오류] indexController 폴더 변경후 bean중복 오류 #271

cjsxorud111 opened this issue Feb 19, 2020 · 5 comments

Comments

@cjsxorud111
Copy link

어떤 오류인가요?

오류설명:
안녕하세요
indexController 클래스위치를 src.main.java.com.cocicalc.web.dto 로 잘못되어 있어서 src.main.java.com.cocicalc.web 로 옮겼는데 이후로 Application.java를 구동하면
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.socicalc.Application]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'indexController' for bean class [com.socicalc.web.dto.IndexController] conflicts with existing, non-compatible bean definition of same name and class [com.socicalc.web.IndexController]
라는 오류가 납니다.

프로젝트 주소

Github에 오류가 난 프로젝트를 올려주세요.
Github 주소를 작성해주지 않으시면 답변해드릴수가 없어요!

오류 로그

image

image

어떤 오류인지 캡쳐해주세요.

@MinhoLee93
Copy link

@cjsxorud111

저도 비슷한 경우가 종종 발생하는데

폴더중에 out 이라는 폴더 지우고

image

gradle에서 clean -> build 순서대로 진행한뒤에

image

어플리케이션 실행하면 해결이 되더라구요 :)
한번 해보시겠어요??

@cjsxorud111
Copy link
Author

@MinhiLee93
답변 감사드립니다😁
프로젝트에 out폴더가 없어서 clean, build만 하고 재실행 했더니 정상작동합니다.

@jojoldu
Copy link
Owner

jojoldu commented May 2, 2020

@MinhoLee93 님 답변 감사합니다 :)

@jojoldu jojoldu closed this as completed May 2, 2020
@planetdoy
Copy link

@MinhoLee93 오! 감사합니다.!

@developerkjm
Copy link

와 정말 감사합니다!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants