原理非常easy,使用httpclient请求遍历整个站点的菜单、文章链接。请求下来以后,生成html文件。即静态化了
把它们稍作调整,直接扔在88元购买的阿里云主机上。站点就完毕了
这是我的 静态站点 http://www.j4cms.com/
这是我的演示站点 http://java4cms.jd-app.com/index.html
是不是一模一样。这样一来,全然能够在本地抛起J4CMS 完毕内容的编辑。一键生成html
用 ftp 直接传到自己的空间,就不用再话大价钱买java 空间,用死慢的php空间了
随后J4CMS会支持直接项目里ftp上传到空间,那就更简单了,敬请期待
这是測试站 http://bamboocms.jd-app.com/index.html
上个图