Just create a setenv.bat file inside the TOMCAT/bin directory with the following contents:
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8"
如果是linux,setenv.sh的内容如下:
set "JAVA_OPTS=$JAVA_OPTS -Dfile.encoding=UTF8"
Just create a setenv.bat file inside the TOMCAT/bin directory with the following contents:
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8"
如果是linux,setenv.sh的内容如下:
set "JAVA_OPTS=$JAVA_OPTS -Dfile.encoding=UTF8"