教程针对如下框架,开发工具,插件包整理
1. eclipse3.7版本
2. Apache-tomcat-6.0.18
3. jrebel eclipse 插件离线包(update-site).zip
4. jrebel.jar
5. 项目框架struts2+spring+ibatis+freemarker
1.安装jrebel eclipse 插件
![](http://static.oschina.net/uploads/space/2012/1225/133940_HyhY_583839.png)
点击next直到finish
2.修改jrebel.jar
![](http://static.oschina.net/uploads/space/2012/1225/134106_zZWE_583839.png)
3.配置tomcat6.0
Window-Perferences-Server-Runtime Environments-Add-Apache Tomcat v6.0选择好tomcat路径,jre。完成安装
Window-Show View-Other-Server之后
![](http://static.oschina.net/uploads/space/2012/1225/134207_BBKq_583839.png)
Drebel.dirs=E:\eclipse_workspace\eclipse3.2_workspace\base\build\classes,E:\eclipse_workspace\eclipse3.2_workspace\base\WebContent 修改之后自动加载的class目录和webcontext路径
-Drebel.spring_plugin=true 支持spring自动加载
-Drebel.ibatis_plugin=true 支持ibatis自动加载
-Drebel.struts2-plugin=true 支持struts2自动加载
注意点:
![](http://static.oschina.net/uploads/space/2012/1225/134335_6qlS_583839.png)
此项必须打勾
教程到此。以上配置完成后,在开发过程中基本上不用繁琐的重启tomcat了。
myeclipse和eclipse配置稍不同,myeclipse的教程后期出。
教程打包下载:http://pan.baidu.com/share/link?shareid=143908&uk=2165194896