[http://blog.csdn.net/wl_95421/archive/2005/09/09/476258.aspx]
使用Eclipse的编译输出的include和exclude
不将HTML文件编译到classes下面去
然后写一个自己的Application类,继承WebApplication
public AuthenticateApplication()
{
String t_ClassFolder = AuthenticateApplication.class.getResource("//").getPath();
Folder t_BaseFolder = new Folder(t_ClassFolder);
Folder t_Folder = new Folder(t_BaseFolder.getParent() + "\\src\\java\\");
Path t_Path = new Path(t_Folder);
// this.getSettings().setResourceFinder(t_Path);
this.getSettings().setSourcePath(t_Path);
this.getSettings().setResourcePollFrequency(Duration.ONE_MINUTE);
// 将\WEB-INF\src\java目录也作为查找Html文件的路径
// 并每隔每秒检查一次文件是否被修改
// 如果修改了就重新载入
}