Plan to start learning java. first step
1. Create a new server in the servers window
2. Select the corresponding tomcat version in the pop-up interface.
3. Here is the key. Do not select the existing project, otherwise the final generated server configuration cannot modify the server locations.
Note: Although there are many claims on the Internet that you can set server locations after right-clicking clean on the server configuration, this is not the effect when I tested it locally.
4. Double-click on the server configuration
5. The pop-up server locations can be configured at this time. Select the second item, use tomcat, and pay attention to the Deploy path. According to the tomcat directory is webapps, just write it like this.
6. Finally, run the project on Server and use the configured tomcat. The project will be automatically published to tomcat's webapps directory.
7. Final effect
Friends, you can understand now. It’s already illustrated with pictures and text. If you still don’t understand, please let Java go~~