把以前的一个spring+ibatiS的项目改个名字出现的异常:

 

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not exist。

 

Caused by: java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not exist

 

 

错误来源:

首先把域名映射修改,比如之前叫AAA,现在改成BBB,我是这样做的:全局搜索AAA然后替换成BBB,主要是配置文件里面的。

然后发布修改后的项目,启动的时候就报了上述错误。以为很简单的??!

 

解决方法:

查找了下发布的任务的情况,发现tomcat下发布的class下面没有配置文件的信息。

 

从网上搜搜,有个思路,把项目clean下,正在尝试。。。。。。不行,还是没有配置文件信息。

 

然后做法如下图,问题解决,留下解决思路。

很简单的项目复制找不到spring.xml文件

 

 

 

 

相关文章:

  • 2022-02-19
  • 2022-12-23
  • 2021-04-10
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-01-03
猜你喜欢
  • 2021-09-24
  • 2021-04-28
  • 2021-06-07
  • 2022-12-23
  • 2021-07-08
  • 2022-01-19
  • 2021-07-29
相关资源
相似解决方案