背景:
当时我在用jenkins 构建项目,用的是Maven打包工具,命令如下
mvn clean package -Dmaven.test.skip=true
一切还算顺利~~
可是当我启动spring boot项目的时候,问题来了!项目启动不起来!!
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.xxx.xxx.Application]; nested exception is java.io.FileNotFoundException: class path resource [com/xxx/xxx/controller/BaseController.class] cannot be opened because it does not existat org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:189)at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331)at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:247)at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:311)at