第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

SchemaExport export = new SchemaExport(configuration);報錯?

SchemaExport export = new SchemaExport(configuration);報錯?

慕粉2120347094 2017-02-25 16:34:26
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; /** ?*?Created?by?asd73?on?2017/2/25. ?*/ public?class?TestStudents?{ ????@Test ????public?void?testSchemaExport(){ ????????//默認(rèn)讀取hibernate.cfg.xml文件 ????????Configuration?configuration?=?new?Configuration().configure(); ????????ServiceRegistry?serviceRegistry?=new?ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry(); ????????SessionFactory?sessionFactory?=?configuration.buildSessionFactory(serviceRegistry); ????????//?生成并輸出sql到文件(當(dāng)前目錄)和數(shù)據(jù)庫 ????????SchemaExport?export?=?new?SchemaExport(configuration); ????????//?創(chuàng)建表結(jié)構(gòu),第一個true?表示在控制臺打印sql語句,第二個true?表示導(dǎo)入sql語句到數(shù)據(jù)庫 ????????export.create(true,true); ????} }在SchemaExport?export?=?new?SchemaExport(configuration);中報錯hibernate包如下,hibernate用的4.2.4為什么報錯
查看完整描述

1 回答

?
慕運維3945127

TA貢獻(xiàn)1條經(jīng)驗 獲得超0個贊

我也是這樣的情況,請問現(xiàn)在你解決了嗎,是怎么解決的?

查看完整回答
反對 回復(fù) 2017-12-23
  • 1 回答
  • 0 關(guān)注
  • 1656 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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