Eclipse sometimes modify a little JS or JSP will automatically restart, and sometimes after the modification of JS or JSP must restart the server to take effect, the following study of some of the server options to completely solve these problems, the following record:
The configuration of my eclipse:
Explain
1.Never Publish automatically is
Do not automatically deploy, mainly to prevent each modification of JS or JSP or Java code automatically restart the server.
2.Server locations check the middle;
is to publish the project to the Tomcat installation directory for easy searching.
3.Server options Tick First, second
The first: In order for Tomcat to deliberately use the items under the project West Red Webroot without having to publish the project to the Tomcat WebApps directory, if you do not tick the JS or JSP after each modification, you have to restart Tomcat.
Second: Place the context node that was previously generated in Server.xml under the Conf\catalina\localhost folder alone
If you turn off Tomcat to modify JS or JSP to restart continuously, you can also search for server.xml after ctrl+shift+r in Eclipse, and then change the value reloadable to false:
Server configuration for Tomcat in "Eclipse" Eclipse (fix code constantly restarting server)