主题 : 请问
级别: 贡士
UID: 57979
积分:702 加为好友
威望: 0 精华: 0
主题:49 回复:245
注册时间:2014-02-18
在线时长:0
1#   发表于:2014-02-19 11:16:56  IP:60.212.*.*
后台操作页面-生成-首页静态化
@RequestMapping(value = "/static/o_channel.do")
public void channelSubmit(Integer channelId, Boolean containChild,
HttpServletRequest request, HttpServletResponse response) {
CmsSite site = CmsUtils.getSite(request);
if (containChild == null) {
containChild = true;
}
String msg;
try {
int count = staticPageSvc.channel(site.getId(), channelId,
containChild);
msg = "{'success':true,'count':" + count + "}";
} catch (IOException e) {
log.error("static channel error!", e);
msg = "{'success':false,'msg':'" + e.getMessage() + "'}";
} catch (TemplateException e) {
log.error("static channel error!", e);
msg = "{'success':false,'msg':'" + e.getMessage() + "'}";
}
ResponseUtils.renderJson(response, msg);
}
这个也没有进行静态化操作啊:只是操作了数据库 请问这个有什么用啊
级别: 贡士
UID: 57979
积分:702 加为好友
威望: 0 精华: 0
主题:49 回复:245
注册时间:2014-02-18
在线时长:0
2#   发表于:2014-02-19 11:19:00  IP:60.212.*.*
看到了..dao层操作了outPutStream谢谢了
级别: 总版主
UID: 10736
积分:148366 加为好友
威望: 205 精华: 42
主题:287 回复:126119
注册时间:2010-09-08
在线时长:15.11
3#   发表于:2014-02-19 11:24:02  IP:117.114.*.*
路漫漫其修远兮,吾将上下而求索!
1 共1页