解决同名问题
关键字:Bean重复
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'categoryServiceImpl' for bean class [com.sky.service.impl.CategoryServiceImpl] conflicts with existing, non-compatible bean
解决办法
既然知道了问题原因,那么解决起来也比较简单,以使用Idea为例,通过菜单栏打开使用全局搜索选项或者使用快捷键
Ctrl+Shift+F来打开
写成正确的
这样就解决问题了