Application run failed
spring启动错误

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.atguigu.guli.service.cms.ServiceCmsApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name ‘adTypeController’ for bean class [com.atguigu.guli.service.cms.controller.admin.AdTypeController] conflicts with existing, non-compatible bean definition of same name and class [com.atguigu.guli.service.cms.controller.AdTypeController]

经过测试发现是 BeanDefinitionStoreException(Bean定义存储异常)
有两个controller
在这里插入图片描述
去掉一个TypeController后启动成功

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐