When Myeclipse-web is developed, when you restart Tomcat, redeploy

Source: Internet
Author: User

When Myeclipse-web is developed, when you restart Tomcat, redeploy


Conclusion Although not all, but know is still earlier, but know last night suddenly flashed again (ghost know why), so decided to write to blog. Quite a year, very painful, silly every time to restart Tomcat, or redeploy, that is called two AH (more important is slow).


1. Redeployment

Niang, this situation this year has not seen, I use is MyEclipse 6.6, but the past met to more, unexplained. This is even less so now that the MyEclipse has been upgraded. In short, now this is a small probability event, it is not possible to redeploy it.

To add, there's just one situation that needs to be redeployed: it was when I added the jar package through the user library because the jar package didn't replicate in the past.


2. Restart Tomcat

According to my practice and theory, practice comes from every day to write the program, the theory comes from the "Java Virtual Machine Second Edition", there is time to see, a little enlightened feeling, but now I do not remember the place, looking back to find the principle [more].

Add a new class, modify a class name, add a method, modify a method name, add or remove parameters for a method (Niang, and forget the jargon [quest-], is the method test (string str) into test () or test (string str, int i)), and adding or removing exceptions for the method, that is, test () to test () throws exception all need to restart Tomcat.


3. No need to do anything

Modify JSP, HTML, JS and other things, remember the browser to empty the cache ah.


4. Other

Some things are based on configuration to determine whether to restart, such as struts2 (see Struts2 profile).


When Myeclipse-web is developed, when you restart Tomcat, redeploy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.