org.springframework.beans.factory.BeanDefinitionStoreException 异常 ,有相同类名的Controller

mac2024-05-16  30

报错信息

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring-mvc.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'applicationController' for bean class [com.ssm.controller.ApplicationController] conflicts with existing, non-compatible bean definition of same name and class [com.ssm.controller.app.ApplicationController]

原因是不同包下的Controller类名一直

 

最新回复(0)