fastcampus-eatgo icon indicating copy to clipboard operation
fastcampus-eatgo copied to clipboard

 .

Open yohandevdev opened this issue 5 years ago • 2 comments

yohandevdev avatar Jan 07 '20 23:01 yohandevdev

해결 하셨나요? 저도 같은 문제가 발생하는데

sdc02408 avatar Jan 20 '20 09:01 sdc02408

긴 에러 메시지에서 원인이 되는 부분을 찾는 게 처음에는 어려운 일입니다. 여기서 핵심은 이겁니다:

org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'restaurantService' for bean class [kr.co.fastcampus.eatgo.interfaces.eatgo.application.RestaurantService] conflicts with existing, non-compatible bean definition of same name and class [kr.co.fastcampus.eatgo.application.RestaurantService]

레스토랑 서비스가 두 곳에 있다는 거죠. 패키지 구성을 확인하셔서 중복을 제거하시고, 그래도 계속 문제가 생기면도이미 만들어진 클래스 파일을 제거하기 위해 Clean이나 Rebuild를 하시면 됩니다.

ahastudio avatar Mar 11 '20 11:03 ahastudio