resource: *********.hbm.xml not found 这个错误完美解决

在hibernate.cfg.xml文件下

1. <mapping resource="package.User.hbm.xml" />


改成
 <mapping resource="package/User.hbm.xml" />

2. <mapping resource="package.package.User.hbm.xml" />


改成
 <mapping resource="package/package/User.hbm.xml" />

猜你喜欢

转载自blog.csdn.net/zhw0596/article/details/80354496