高性能Java Web 页面静态化技术(原创) (三)

2014-11-24 10:36:26 · 作者: · 浏览: 2

page = page.replaceAll("\\.\\./", webappname+"/");
return page;
}

//测试方法
public static void main(String[] args){
HtmlGenerator h = new HtmlGenerator("webappname");
h.createHtmlPage("http://localhost:8080/yanCms/three/three parent_id=10&id=103&type=10","c:/a.html");
System.out.println("静态页面已经生成到c:/a.html");

}

}