• 大小: 2MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-24
  • 语言: Html/CSS
  • 标签: 搜狗统计  

资源简介

搜狗统计分析,ssh框架,将hadoop离线分析的数据进行报表展示。 博客地址:http://www.cnblogs.com/biehongli/p/8074642.html

资源截图

代码片段和文件信息

package com.bie.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.bie.po.SogouFrequencyRanking;
import com.bie.service.impl.FrequencyRankingServiceImpl;
import com.bie.utils.JsonUtils;

@Controller
public class FrequencyRankingController {

@Autowired
private FrequencyRankingServiceImpl frequencyRankingService;

//@ResponseBody将返回值转化为json格式响应到客户端
@RequestMapping(value=“/show“method=RequestMethod.POST)
public @ResponseBody void showFrequencyRanking(HttpServletRequest request HttpServletResponse response){
response.setCharacterEncoding(“utf-8“);
try {
List selectFrequencyRanking = frequencyRankingService.selectFrequencyRanking();

String jsonData = JsonUtils.toJSONString(selectFrequencyRanking);
System.out.println(jsonData);
response.getWriter().write(jsonData);
response.getWriter().flush();
response.getWriter().close();
} catch (Exception e) {
e.printStackTrace();
}

}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-25 10:14  sogou\
     文件        1451  2017-12-22 10:30  sogou\.classpath
     文件        1214  2017-12-22 10:24  sogou\.project
     目录           0  2017-12-25 10:14  sogou\.settings\
     文件         639  2017-12-22 10:24  sogou\.settings\.jsdtscope
     文件          57  2017-12-22 11:51  sogou\.settings\org.eclipse.core.resources.prefs
     文件         736  2017-12-22 10:28  sogou\.settings\org.eclipse.jdt.core.prefs
     文件          90  2017-12-22 10:23  sogou\.settings\org.eclipse.m2e.core.prefs
     文件         740  2017-12-22 10:28  sogou\.settings\org.eclipse.wst.common.component
     文件         252  2017-12-22 11:35  sogou\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-12-22 10:24  sogou\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-12-22 10:24  sogou\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          50  2017-12-22 10:24  sogou\.settings\org.eclipse.wst.validation.prefs
     文件        6413  2017-12-22 10:43  sogou\pom.xml
     目录           0  2017-12-25 10:14  sogou\src\
     目录           0  2017-12-25 10:14  sogou\src\main\
     目录           0  2017-12-25 10:14  sogou\src\main\java\
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\controller\
     文件        1507  2017-12-22 15:32  sogou\src\main\java\com\bie\controller\FrequencyRankingController.java
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\dao\
     文件         219  2017-12-22 13:22  sogou\src\main\java\com\bie\dao\FrequencyRankingDao.java
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\mapping\
     文件         821  2017-12-25 09:52  sogou\src\main\java\com\bie\mapping\FrequencyRanking.xml
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\po\
     文件         620  2017-12-22 14:55  sogou\src\main\java\com\bie\po\SogouFrequencyRanking.java
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\service\
     文件         227  2017-12-22 13:22  sogou\src\main\java\com\bie\service\FrequencyRankingService.java
     目录           0  2017-12-25 10:14  sogou\src\main\java\com\bie\service\impl\
     文件         702  2017-12-22 13:22  sogou\src\main\java\com\bie\service\impl\FrequencyRankingServiceImpl.java
............此处省略54个文件信息

评论

共有 条评论

相关资源