nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException
錯誤日誌為:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.landspace.eam.web.EamWebApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'testController' for bean class [com.landspace.base.web.controller.TestController] conflicts with existing, non-compatible bean definition of same name and class [com.landspace.demo.controller.TestController] |
大意是:testController與現有包中的命名重複
修改方式:
修改類的命名,使之唯一。