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

為了賬號安全,請及時綁定郵箱和手機立即綁定

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

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);
	}
}

控制臺輸出:

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ù)庫的URL寫錯了

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

hibertnate缺jboss-logging這個包

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

云雀 提問者

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

舉報

0/150
提交
取消

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

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

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

幫助反饋 APP下載

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

公眾號

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