1. Create a project through maven
2. Download tomcat server
We generally download tomcat on the tomcat official website
3. Add configuration: we click the file configuration in the figure below
4. Test configured tomcat
We enter the test content in the body of the file:
Explicit tomcat running information in the console:
Our test content can be output normally in the browser, and the tomcat server is successfully set up