org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class

 

- Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.XXX.XXXApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'XXXController' for bean class [com.XXX.XXX.controller.admin.XXXController] conflicts with existing, non-compatible bean definition of same name and class [com.XXX.web.controller.common.XXXController]

-应用程序运行失败

解析配置类[com.XXX.XXXApplication]失败;嵌套异常是:为bean类注释指定的bean名'XXXController'。与同名和类的现有的、不兼容的bean定义冲突

解决:

类命名有重复

你可能感兴趣的:(java,spring)