1.创建一个Web项目

IDEA使用Tomcat

IDEA使用Tomcat

2.加入Tomcat

IDEA使用Tomcat

IDEA使用Tomcat
IDEA使用Tomcat

3.加入Tomcat环境

IDEA使用Tomcat
IDEA使用Tomcat

4.解决中文乱码

 (1) file–ssettings–搜索File Encodings,改为UTF-8
IDEA使用Tomcat
 (2) 在idea的bin目录下idea.exe.vmoptions和idea64.exe.vmoptions都加上-Dfile.encoding=UTF-8
 (3) 配置tomcat的页面中:VM option设置:-Dfile.encoding=UTF-8
IDEA使用Tomcat

相关文章:

  • 2021-11-11
  • 2021-10-20
  • 2021-04-16
  • 2021-04-30
  • 2021-09-13
  • 2021-11-05
  • 2021-04-21
猜你喜欢
  • 2021-09-11
  • 2021-05-16
  • 2021-12-14
  • 2021-12-12
  • 2021-11-19
  • 2021-11-23
  • 2022-01-03
相关资源
相似解决方案