Bug 记录(持续更新。。。)

1. Intellij IDEA 启动 Timcat 时在控制台日志显式乱码

解决方法:在 VM Options 里面添加:-Dfile.encoding=UTF-8。如下图所示:

2. Intellij IDEA 启动 Tomcat 时提示“Application Server was not connected before run configuration stop, reason:Unable to ping server at localhost:1099”

解决方法:修改/etc/hosts文件,添加 127.0.0.1 localhost xxxxxx
其中xxxxxx是本机名, 本机名可以在命令窗口下使用hostname获得

3. MAC 中使用 zsh 时,mvn 命令不生效

解决办法:在 .zshrc 中添加 source .bash_profile 这一句。

原文地址:https://www.cnblogs.com/FlySheep/p/6082475.html