org.hibernate.boot.MappingNotFoundException

org.hibernate.boot.MappingNotFoundException

对应的文件地址为

org.hibernate.boot.MappingNotFoundExceptionorg.hibernate.boot.MappingNotFoundException


原因是:
IDEA在编译的时候,将java目录下的所有.java文件编译并放到了target目录的对应目录下,当xml文件没有编译,因此没有拷贝。所以,运行的时候也就找不到.hbm.xml文件了
解决方案是:
将.hbm.xml文件放到target下