1. hibernate.cfg.xml 文件,属性->复制到输出目录 -> 始终复制 2. *.hbm.xml 文件,属性->生成操作->嵌入的资源 转载于:https://www.cnblogs.com/vingi/articles/2696752.html