Tomcat uses spring-loaded for hot Application Deployment. springloadedtomcat

Source: Internet
Author: User

Tomcat uses spring-loaded for hot Application Deployment. springloadedtomcat

Springloaded official notes:

Spring Loaded is a JVM agent for reloading class file changes whilst a JVM is running. it transforms classes at loadtime to make them amenable to later reloading. unlike 'hot code replace 'which only allows simple changes once a JVM is running (e.g. changes to method bodies), Spring Loaded allows you to add/modify/delete methods/fields/constructors. the annotations on types/methods/fields/constructors can also be modified and it is possible to add/remove/change values in enum types.
Spring Loaded is usable on any bytecode that may run on a JVM, and is actually the reloading system used in Grails 2.


1. Download springloaded-1.2.5.RELEASE.jar, address: https://github.com/spring-projects/spring-loaded

2. Place the springloaded-1.2.5.RELEASE.jar in the bin folder of tomcat

3. open catalina. bat in bin and add the following sentence:
Set JAVA_OPTS =-Java agent: springloaded-1.2.5.RELEASE.jar-noverify

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.