解決Idea的tomcat啟動(dòng)報(bào)多個(gè)listener的錯(cuò)誤問題
錯(cuò)誤截圖
找不到出錯(cuò)的異常位置在哪里。解決辦法:在resources目錄下創(chuàng)建一個(gè)logging.properties的文件,然后重啟
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = error-debug. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
這是tomcat的異常排查,可以在控制臺(tái)打印出具體的異常,并且可以順利找到位置
到此這篇關(guān)于解決Idea的tomcat啟動(dòng)報(bào)多個(gè)listener的錯(cuò)誤問題的文章就介紹到這了,更多相關(guān)Idea tomcat啟動(dòng)報(bào)錯(cuò)內(nèi)容請(qǐng)搜索本站以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持本站!
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。