Hibernate错误:Could not bind factory to JNDI

使用hibernate时,将hibernate.cfg.xml中 <session-factory name="SessionFactory">的那么属性去掉即可。因为,有了name属性hibernate会试图把这个sessionfacotry注册到jndi中去。

posted @   bluepoint2009  阅读(451)  评论(0)    收藏  举报
点击右上角即可分享
微信分享提示