intellij idea 热部署 spring jvm 版 http://my.oschina.net/u/556878/blog/416563
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>springloaded</artifactId> <version>1.2.3.RELEASE</version> </dependency> </dependencies> </plugin>
配置 intellij idea tomcat 加入下面这个参数, 或者maven执行的时候增加VM Options, 对应jar 到 mvnrepo 下载 。
-javaagent:/mnt/D/databaseDrivers/springloaded-1.2.3.RELEASE.jar -noverify
注意: 热部署之后无法调试, 除非重启.
JRebel
参考 http://panyongzheng.iteye.com/blog/1888423
JRebel MAC IDEA热加载 配置 http://chessman-126-com.iteye.com/blog/2163514
Jrebel 5.5.2+IDEA13 热部署配置 http://lavasoft.blog.51cto.com/62575/1399707
JRebel 6.1.0 for Intellij IDEA 14.0 破解 http://blog.csdn.net/younger_cheung/article/details/44174661
JRebel配置
在非webapp工程的main/resources下面增加rebel.xml
<?xml version="1.0" encoding="UTF-8"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd"> <classpath> <dir name="D:\work_documents\wp_eclipse_linux\framework\framework-base\target\classes"> </dir> </classpath> </application>
在webapp工程的main/resources下面增加rebel.xml
<?xml version="1.0" encoding="UTF-8"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd"> <classpath> <dir name="D:\work_documents\wp_eclipse_linux\framework\framework-webapp\target\classes"> </dir> </classpath> <web> <link target="/WEB-INF/classes"> <dir name="D:\work_documents\wp_eclipse_linux\framework\framework-webapp\src\main\resources"> </dir> </link> <link target="/"> <dir name="D:\work_documents\wp_eclipse_linux\framework\framework-webapp\src\main\webapp"> </dir> </link> </web> </application>
大致配置如下, 版本: JRebel6.1.0
将jrebel_6.1.0-agent-crack.zip进行解压,将 lib目录下的jrebel.jar和jrebel.lic放置到指定的.IntelliJIdea14目录下
config\plugins\jr-ide-idea\lib\jrebel,
config\plugins\jr-ide-idea\lib\jrebel\lib,
config\plugins\jr-ide-idea\lib\jrebel6
目录,所有包含jrebel.jar文件的目录,确认覆盖,即可完成安装!
打开tomcat配置,配置JVM运行参数, 或者maven执行的时候增加VM Options:
-noverify -javaagent:/mnt/E/Fedora/tools/IntelliJIdea14_config/config/plugins/jr-ide-idea/lib/jrebel/lib/jrebel.jar
-Drebel.disable_update=true
-DJAVA_OPTS=-Xms512m
-Xmx512m
-XX:MaxNewSize=256m
-XX:MaxPermSize=256m