iT邦幫忙

0

Run Application的時候跳出log4j:WARN

  • 分享至 

  • twitterImage

環境:
JDK8
JRE8
TOMCAT 7

我在練習Hibernate、的方法寫入資料庫以及TEST,當我run Test的時候Console出現以下訊息:
http://ithelp.ithome.com.tw/upload/images/20170308/20104799lYXTBhSdKI.png
http://ithelp.ithome.com.tw/upload/images/20170308/201047997dDZc2oI3T.png

這是我的log4j2.xml:

http://ithelp.ithome.com.tw/upload/images/20170308/20104799uSFUz3vtmv.jpg

這是我的hibernate.cfg.xml:

http://ithelp.ithome.com.tw/upload/images/20170308/20104799nBMwWAQxOu.jpg

在網路上找了許久,還是找不到log4j WARN的解決辦法,
請問是哪裡有問題?

fillano iT邦超人 1 級 ‧ 2017-03-08 10:16:23 檢舉
問題不是出在log4j warn吧?應該是從Initial SessionFactory creation failed...這裡開始。
chousen iT邦新手 5 級 ‧ 2017-03-08 13:50:14 檢舉
問題已經解決了!,感謝你
fillano iT邦超人 1 級 ‧ 2017-03-08 17:37:22 檢舉
:)
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答