原文: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