天天看點

Tomcat相關 送出資料亂碼等問題解決

1,tomcat服務啟動時亂碼解決辦法,将下面檔案内的UTF-8變成GBK

****/apache-tomcat-9.0.41\conf\logging.properties

Tomcat相關 送出資料亂碼等問題解決

2,tomcat上的釋出的項目亂碼(本地測試時候不亂碼),把【set JAVA_OPTS=-Dfile.encoding=UTF-8】加入到下面檔案内

***/apache-tomcat-9.0.41\bin\catalina.bat

Tomcat相關 送出資料亂碼等問題解決

3,tomcat釋出項目時的通路路徑等的配置和編碼

***\apache-tomcat-9.0.41\conf\server.xml

Tomcat相關 送出資料亂碼等問題解決
Tomcat相關 送出資料亂碼等問題解決