1. Use the command line to check the jdk version;
2. Go to the Tomcat official website to download the corresponding version of Tomcat, for example, if the jdk is 8.0, select Tomcat 8
3. Configure environment variables (find the directory where Tomcat is decompressed and add the root directory path to the environment variables)
4. Start Tomcat, find startup.bat in the bin directory under the Tomcat directory, and double-click it.
5. Verification: Open the browser, enter: http://localhost:8080 , the following figure appears, indicating that Tomcat has been successfully started.
+
6. Configure your own project
6.1 Find webapps in the Tomcat directory, and then create a new project name in it (not in Chinese)
6.2 Copy the WEB-INF folder under the ROOT file under webapps to your own project
6.3 Then you can Put the files you need. For example, I put a json file here. 6.4 Access the
files in the project. For other terminal access, replace localhost with the ip of the computer where Tomcat is built (windows can enter ipconfig through the terminal), for example: http://192.168.16.101:8080/xxx/test.json