tomcat里设置读取静态文件时的编码

把“-Dfile.encoding=UTF-8”加到catalina.sh里的java_opts里即可

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.