1. In the servers view at the bottom of eclipse, remove all deployed projects, as shown in the figure:
two On the server, right-click and select open, or press F3 in the blank space, or double-click to open the following page:
three Select “use Tomcat installation” in “server locations”, and you can clearly see that the default is “use” Workspace metadata “, that is, the directory mentioned above. Then write webapps at the path of deploy, as shown in the following figure:
After modification, save it. In this way, future projects will be published to webapps under Tomcat.
Note: 1. In eclipse, publishing a web project in this way will divide the conf folder of the original server into a backup folder, and create a new folder to configure the web project published by eclipse. So you still need to write a Java Web project using MyEclipse
2. Sometimes, nothing can be selected under the server locations project. You can delete the server, add the Tomcat server again, and then right-click to open it and modify it.
Reference website:
Read More:
- Solve the problems of (deployment descriptor: project name) and (jax-ws web services) under the new eclipse project
- Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)
- After eclipse eclipse eclipse imports the correct project, an error is reported in XML and other files
- After modifying the Tomcat configuration file in development, the modified configuration file will be automatically restored after ecplise starts Tomcat
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- The Vue project is packaged and deployed to tomcat, and an Error 404 is reported as soon as it is refreshed
- IOS WebView failed to load the web page. Error domain = kcferrodomaincfnetwork code = 310 “there was a problem communicating with the secure web proxy server (HTTPS). “
- An error occurred when starting Tomcat in Eclipse: the sub container failed to start
- Solutions to the problem of “Autowired cannot be resolved to a type” in eclipse Maven project
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- QQ browser open automatically appear two web page solution
- maven_ Unable to create servlet file under Java Web project
- There is more than one Web fragment with the same name: “spring_web”.
- web.xml Web app error in file
- Tomcat web compression configuration
- Solution to garbled code problem after importing project in eclipse
- Web Crawler: How to get the data in the web page and disguise the header, disguise as a browser to visit many times, avoid a single visit leading to IP blocked
- Solution of project error reporting in eclipse
- Running Django (2.2) project in Python 3.7.9 reports an error
- Notes on unity project_ Unity webplayer failed to update unity web player