tomcat閃退,亂碼問題解決
2023-03-04 15:17 作者:多少混點(diǎn) | 我要投稿
1、閃退
問題描述:雙擊startup.bat閃退,命令窗口手動(dòng)輸入startup有回顯,但tomcat仍未啟動(dòng)
原因:tomcat版本和jdk版本沖突
解決方案:blog.csdn.net/weixin_69553582/article/details/124893550
2、亂碼
問題描述:啟動(dòng)tomcat之后亂碼

原因:中文亂碼
解決方案:修改tomcat日志的配置文件logging.properties,地址在conf目錄下

將java.util.logging.ConsoleHandler.encoding改成GBK即可

2’、idea整合tomcat在server控制臺(tái)回顯亂碼
問題描述:在idea中啟動(dòng)tomcat亂碼

原因:中文亂碼
解決方案:先將tomcat日志的配置文件logging.properties中的java.util.logging.ConsoleHandler.encoding改回UTF-8。然后再修改Java虛擬機(jī),如下圖所示

添加一行:-Dfile.encoding=UTF-8

最后測試成功


標(biāo)簽: