class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist

2019-07-24 00:00:00 path class meta

如图所示,错误就是找不到那个service.xml
《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》

《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》

《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》

但是仔细找找,那个文件确确实实躺在那儿的。

那是什么原因了,别人告诉我这个要看Class path。

System.getProperty("java.class.path") 

用这个可以得到class path 。

解决方案就是把META-INF那个文件夹拖到WEB-INF这个文件夹下面来才可以被找到。然而那个上面的那个也删不掉,反正问题解决了。

《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》

《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》

相关文章