1 具体报错:
org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found : com/atguigu/hibernate/helloworld/News.hbm.xml : origin(com/atguigu/hibernate/helloworld/News.hbm.xml)
2 可能原因:
hibernate映射文件hibernate.cfg.xml中mapping中resource写错了文件名或者路径,具体到我这的错误是找不到com/atguigu/hibernate/helloworld/News.hbm.xml,就是路径可能存在错误。