使用hibernate时,将hibernate.cfg.xml中 <session-factory name="SessionFactory">的那么属性去掉即可。因为,有了name属性hibernate会试图把这个sessionfacotry注册到jndi中去。
转载于:https://www.cnblogs.com/bluepoint2009/p/hibernate-not-bind-factory-to-JNDI.html
本文详细介绍了在使用hibernate时,如何通过移除hibernate.cfg.xml文件中session-factory name属性来避免sessionfactory被注册到JNDI中,从而解决相关问题。
使用hibernate时,将hibernate.cfg.xml中 <session-factory name="SessionFactory">的那么属性去掉即可。因为,有了name属性hibernate会试图把这个sessionfacotry注册到jndi中去。
转载于:https://www.cnblogs.com/bluepoint2009/p/hibernate-not-bind-factory-to-JNDI.html
1830
4583
1125

被折叠的 条评论
为什么被折叠?