根本原因,tomcat 输出的东西,与cmd控制台或者IDE控制台编码不一致。
修改tomcat输出内容的编码,%CATALINA_HOME%/conf/logging.properties
%CATALINA_HOME%/conf/logging.properties
9.0.14版本比9.0.12版本多了如下代码
java.util.logging.ConsoleHandler.encoding = UTF-8 删除:
java.util.logging.ConsoleHandler.encoding = UTF-8
#java.util.logging.ConsoleHandler.encoding = UTF-8 或者改成和控制台一致的编码比如GBK
#java.util.logging.ConsoleHandler.encoding = UTF-8
GBK