에러일기
[Spring] org.springframework.beans.factory.BeanDefinitionStoreException 에러
yn98
2024. 10. 8. 16:36

원인
빈 이름이 충돌했기 때문이다.이 에러같은 경우는 친절하게 왜 그런지 읽어보면 알려준다.
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'board' for bean class [com.yn.app.biz.board.BoardServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.yn.app.view.board.BoardController]
board 라는 빈 이름이 겹쳐서 그렇다고 한다.

해결방안

겹치지 않도록 바꾸면 된다.