博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tomcat使用spring-loaded实现应用热部署
阅读量:4451 次
发布时间:2019-06-07

本文共 858 字,大约阅读时间需要 2 分钟。

springloaded官方说明:

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.下载springloaded-1.2.5.RELEASE.jar,地址:

2. 把springloaded-1.2.5.RELEASE.jar放到tomcat的bin文件夹下

3. 打开bin下的catalina.bat,添加如下一句

set JAVA_OPTS=-javaagent:springloaded-1.2.5.RELEASE.jar -noverify

转载于:https://www.cnblogs.com/gdjlc/p/6898757.html

你可能感兴趣的文章
java: -source 1.6 中不支持 switch 中存在字符串
查看>>
Card Stacking 队列模拟
查看>>
抽象类和接口的关系与区别哦
查看>>
【C语言】C语言函数
查看>>
为什么用到混合支付?
查看>>
4.STL六大组件
查看>>
java学习之—栈
查看>>
1.5 重点
查看>>
子序列的按位或 Bitwise ORs of Subarrays
查看>>
IN语句改写EXISTS
查看>>
C#-WinForm-用户控件如何获取父级窗体
查看>>
STL_vector
查看>>
Dev中GridView——背景颜色改变
查看>>
socket编程2
查看>>
web开发中的MVC框架与django框架的MTV模式
查看>>
django添加导包路径
查看>>
java基础知识—变量、数据类型和运算符
查看>>
hadoop队列管理(指定queue跑程序)
查看>>
Lucene 自动补全
查看>>
hibernate建表默认为UTF-8编码
查看>>