最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

hibernate4.2.4版本,創(chuàng)建服務(wù)注冊對象時出錯,請問是什么原因呢?

hibernate4.2.4版本,創(chuàng)建服務(wù)注冊對象時出錯,請問是什么原因呢?

zxkfeel 2016-05-21 15:02:20
package?entity; import?org.hibernate.Session; import?org.hibernate.SessionFactory; import?org.hibernate.cfg.Configuration; import?org.hibernate.service.ServiceRegistry; import?org.hibernate.service.ServiceRegistryBuilder; import?org.hibernate.tool.hbm2ddl.SchemaExport; import?org.junit.Test; public?class?TestStudents?{ @Test public?void?testSchemaExport() { //創(chuàng)建配置對象 Configuration?config?=?new?Configuration().configure(); //創(chuàng)建服務(wù)注冊對象 ServiceRegistry?serviceRegistry?=?new?ServiceRegistryBuilder().applySettings(config.getProperties()).buildServiceRegistry(); //創(chuàng)建sessionFactory SessionFactory?sessionFactory?=config.buildSessionFactory(serviceRegistry); //創(chuàng)建session對象 Session?session??=?sessionFactory.getCurrentSession(); //創(chuàng)建SchemaExport對象 SchemaExport?export?=?new?SchemaExport(config); export.create(true,true); } }上述代碼中,創(chuàng)建服務(wù)注冊對象時出錯:The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files。請大神指教。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 2666 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號