摘要:
//爬虫类public class Test { //需求1:通过一个定的技术,从http://news.sohu.com/爬取这个网站上的文章 //需求2:获取文章的标题,获取文章的内容,最终保存到本地(以文章标题作为文件的名称,文章内容作为文件内容,后缀名为txt的文件) 标题.txt publ 阅读全文
摘要:
使用redis进行文章的排序: public String findAllByDesc(Model model ,@RequestParam(defaultValue="1")Integer pageNum,@RequestParam(defaultValue="10")Integer pageSi 阅读全文