首先打开tomcat配置界面,在server中 将 "On Update action"、"On frame deactivation" 都选择 update classes and resources

SpringCloud(16)—— spring boot 使用Tomcat启动项目控制台乱码问题解决及热部署...

然后选择deployment,点击加号,选择要发步项目的exploded

SpringCloud(16)—— spring boot 使用Tomcat启动项目控制台乱码问题解决及热部署...

在startup/connection页设置JAVA_TOOL_OPTIONS为-Dfile.encoding=UTF-8

SpringCloud(16)—— spring boot 使用Tomcat启动项目控制台乱码问题解决及热部署...

另外还需要修改IDEA的安装目录下:JetBrains\IntelliJ IDEA 2016.3\bin中配置文件

idea.exe.vmoptions,idea64.exe.vmoptions

在该文件中最后面加上:-Dfile.encoding=UTF-8

SpringCloud(16)—— spring boot 使用Tomcat启动项目控制台乱码问题解决及热部署...

 

然后重启IDEA,启动所配置的项目即可。

生活不止眼前的苟且,还有诗和远方...

加油 哥们!

 

转载于:https://www.cnblogs.com/xushuyi/articles/8595445.html

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2021-10-17
  • 2021-09-30
  • 2021-09-29
  • 2021-04-02
猜你喜欢
  • 2021-07-07
  • 2021-08-21
  • 2021-04-03
  • 2021-11-28
  • 2021-10-28
  • 2021-11-29
  • 2021-05-30
相关资源
相似解决方案