我IDEA导入了别人的工程,报错[config/build.certificate.common.properties]找不到?

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)
发布的时候为什么会报这个错?
阅读 3.4k
1 个回答

原来是idea开着的时候,在文件夹(我的电脑)里删除了项目,在添加项目导致的。如果你要替换某个项目,最好先把idea关了之后,再替换,再开idea刷新,比较稳妥。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题