问题Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found解决方法

问题Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found解决方法

http://stackoverflow.com/questions/15258594/hibernate-exception-hibernate-cfg-xml-not-found
这个提示很明显是资源文件没配置对,所以在运行时找不到,那么怎么配置才对呢?

网上找到一个方法:

http://m.blog.csdn.net/blog/kklt21cn/24105687

但是个人觉得不是太好。。。

寻找理好的方法中。。。

原文地址:https://www.cnblogs.com/mxm2005/p/4968193.html