首页 > 技术文章 > 使用Intellij搭建Servlet开发环境

wangshuo 2019-01-16 15:11 原文

https://blog.csdn.net/yhao2014/article/details/45740111

 

使用Tomcat 9时,必须使用jre 1.8,否则会出现Unable to ping server at localhost:1099错误。

 

如果控制台输出乱码,需要修改安装目录中的idea64.exe.vmoptions,添加上-Dfile.encoding=UTF-8,重启Intellij。

还需设置 Run-->Edit Configuration,设置VM options的值为-Dfile.encoding=UTF-8。这样System.out时才不会出现乱码:

 

推荐阅读