配置文件添加以下配置 server: servlet: encoding: force: true charset: UTF-8 enabled: true tomcat: uri-encoding: UTF-8