在保证其他idea编码 环境编码 统一为UTF-8的情况下
如果依然出现乱码,查看pom文件 maven打包时是否有加入环境插件
<build>
<plugins>
<plugin>
<groupId>org
.springframework
.boot
</groupId
>
<artifactId>spring
-boot
-maven
-plugin
</artifactId
>
<configuration>
<fork>true</fork
>
<!--增加jvm参数
-->
<jvmArguments>-Dfile
.encoding
=UTF
-8</jvmArguments
>
</configuration
>
</plugin
>
</plugins
>
</build
>
重启idea -->重启服务器 即可解决问题
转载请注明原文地址:https://ipadbbs.8miu.com/read-44538.html