Could not parse mapping document from resource com/entity/Article.hbm.xml

lys2018年03月08日 2条评论

Could not parse mapping document from resource com/entity/Article.hbm.xml报错,项目结构springmvc + hibernate

今天发现一个问题Could not parse mapping document from resource com/entity/Article.hbm.xml

后面检查了代码也没有发现问题在哪里,最后猜测,估计是eclipse临时服务器发布的代码和项目当前不一致导致的

解决方法:

我的是使用eclipse开发,所以我重新发布代码到eclipse的临时tomcat服务器上了就解决了,就是右击项目重新执行 Run As -> Run on Server