Deploy tomcat in idea and solve the tomcat console garbled problem

Deploy tomcat in idea

1. Create a Maven-web project and
click File–New–Project

Insert picture description here
Select template, webapp
Insert picture description here
set project name, etc.
Insert picture description here
Complete
Insert picture description here

2. Deploy tomcat

Insert picture description here
Select local
Insert picture description here

Insert picture description here
Insert picture description here
3. Tomcat console garbled resolution

Insert picture description here

ctrl+alt+s open the idea settings,
Insert picture description here

Insert picture description here

Modify the configuration file
Insert picture description here
under conf in tomcat Add URIEncoding="UTF-8" in server.xml and
Insert picture description here
change the logging.properties file to GBK
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_46122692/article/details/109166234