问题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

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

寻找理好的方法中。。。

posted on 2015-11-16 10:17  Mack.Meng  阅读(457)  评论(0编辑  收藏  举报