> 文档中心 > IDEA中启动Tomcat时,Output输出信息乱码问题

IDEA中启动Tomcat时,Output输出信息乱码问题

当我们在IDEA中运行Tomcat时,在Output中会出现乱码:
IDEA中启动Tomcat时,Output输出信息乱码问题

解决办法:

1. 在VM options中输入:-Dfile.encoding=UTF-8
IDEA中启动Tomcat时,Output输出信息乱码问题
IDEA中启动Tomcat时,Output输出信息乱码问题
2. 在help中继续配置,将-Dfile.encoding=UTF-8 添加在最后一行
在这里插入图片描述
IDEA中启动Tomcat时,Output输出信息乱码问题
3. 在idea安装目录下的bin目录下的idea.exe.vmoptions、idea64.exe.vmoptions的最后一行添加-Dfile.encoding=UTF-8
IDEA中启动Tomcat时,Output输出信息乱码问题

效果

IDEA中启动Tomcat时,Output输出信息乱码问题

毕业设计范文站