原文:org.hibernate.UnknownEntityTypeException: Unable to locate persister: com.hibernate2.pojo.News at org.hibernate.internal.SessionFactoryImpl.locateEntityPersister(SessionFactoryImpl.java:797)

使用的是hibernate 的方法: ServiceRegistry serviceRegistry new StandardServiceRegistryBuilder .applySettings configuration.getProperties .build 沒有獲得導致配置文件中信息: lt mapping resource com hibernate pojo News.hbm.x ...

2017-08-01 15:38 0 1765 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM