1.在idea的 Help-- custom vm options 添加-Dfile.encoding=UTF-8,重启
2.在idea的tomcat配置里加vm option, 使用英文输出tomcat日志
-Duser.language=en -Duser.region=CA -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
【切忌】自己改tomcat的logging.properties 为GBk 会导致调试时get/post参数乱码

1.在idea的 Help-- custom vm options 添加-Dfile.encoding=UTF-8,重启
2.在idea的tomcat配置里加vm option, 使用英文输出tomcat日志
-Duser.language=en -Duser.region=CA -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
【切忌】自己改tomcat的logging.properties 为GBk 会导致调试时get/post参数乱码