2017-01-08 11:11:57.945:WARN:oejw.WebAppContext:Scanner-1: Failed startup of context o.e.j.w.WebAppContext@5e84adbc{/,file:///E:/mavenWorkspace/labsforce/BackEnd/common/certificate-common/certificate-common-service/target/certificate-common-service/,UNAVAILABLE}
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [config/build.certificate.common.properties] cannot be opened because it does not exist
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:89)
发布的时候为什么会报这个错?
原来是idea开着的时候,在文件夹(我的电脑)里删除了项目,在添加项目导致的。如果你要替换某个项目,最好先把idea关了之后,再替换,再开idea刷新,比较稳妥。