找到tomcat安裝目錄,找到conf下的logging.properties文件,將其中的encoding = UTF-8的部分全部修改為encoding = GBK
是涉及到在tomcat里運行的項目與后端交互的情況,這種情況較為復雜,可首先修改tomcat安裝目錄下的conf下的web.xml文件,在servlet標簽組中加入:
fileEncoding
UTF-8
找到tomcat安裝目錄,找到conf下的logging.properties文件,將其中的encoding = UTF-8的部分全部修改為encoding = GBK
是涉及到在tomcat里運行的項目與后端交互的情況,這種情況較為復雜,可首先修改tomcat安裝目錄下的conf下的web.xml文件,在servlet標簽組中加入:
fileEncoding
UTF-8