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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

junit執(zhí)行成功,但沒有在數(shù)據(jù)庫(kù)中生成表

package?com.entity;

import?org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import?org.hibernate.cfg.Configuration;
import?org.hibernate.service.ServiceRegistry;
import?org.hibernate.tool.hbm2ddl.SchemaExport;
import?org.junit.Test;

public?class?TestStudents?{

	@Test
	public?void?testSchemaExport()?{
		//?create?cofig?file
		Configuration?config?=?new?Configuration().configure();
		
		SchemaExport?export=new?SchemaExport(config);
		export.create(true,?true);
	}
}

控制臺(tái)輸出:

log4j:WARN No appenders could be found for logger (org.jboss.logging).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.


正在回答

2 回答

已經(jīng)找到原因了,連數(shù)據(jù)庫(kù)的URL寫錯(cuò)了

1 回復(fù) 有任何疑惑可以回復(fù)我~

hibertnate缺jboss-logging這個(gè)包

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

云雀 提問者

并不缺呀
2016-08-04 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

junit執(zhí)行成功,但沒有在數(shù)據(jù)庫(kù)中生成表

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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