Web项目为Dynamic Web Project,
Tomcat 插件 下载地址 :http://tomcatplugin.sf.net/update
1.将tomcat plugin插件中的DevloaderTomcat7.jar拷贝到tomcat安装目录下的lib文件夹
2.admin,共通工程为game-common
admin--->Properties---->Java Build Path---->Projects---->add game-common
admin--->Properties--->Tomcat---->DevLoader Classpath---->game-common/bin
admin--->Tomcat project---->Update context definition,context内容变为如下:
[DevLoader] Starting DevLoader
[DevLoader] projectdir=E:\sanda_java\trunk\admin\WebContent
[DevLoader] added file:/E:/sanda_java/trunk/admin/WebContent/WEB-INF/lib/activation-1.1.1.jar
...
DevLoader] added file:/E:/sanda_java/trunk/game-common/bin/
[DevLoader] JSPCompiler Classpath = 。。。。
这样做好后,debug模式下改动代码也不需要再重启了,并且能直接调用其他项目的代码了