一、使用javarebel配置weblogic热部署
在setDomainEnv.cmd文件中增加下面一行代码,分别指定javarebel的路径与应用的classes路径:
setJAVA_OPTIONS=-noverify-javaagent:E:/javarebel-2.0.1/javarebel.jar-Drebel.dirs=D:\project\WebContent\WEB-INF\classes%JAVA_OPTIONS%
javarebel的下载地址:http://www.zeroturnaround.com/javarebel/download/
二、配置tomcat热部署:
可以在server.xml中做如下配置:
<Contextpath="/firstframe"docBase="E:\firstframe\workspace\firstframe\webapp"debug="1"/>
再使用debug方式启动tomcat。