|
1 | 1 | package com.crossoverJie.controller;
|
2 | 2 |
|
3 |
| -import com.fasterxml.jackson.databind.util.JSONPObject; |
4 | 3 | import com.crossoverJie.lucene.LuceneIndex;
|
5 | 4 | import com.crossoverJie.pojo.Content;
|
6 | 5 | import com.crossoverJie.pojo.PageEntity;
|
7 | 6 | import com.crossoverJie.pojo.User;
|
8 | 7 | import com.crossoverJie.service.ContentService;
|
9 | 8 | import com.crossoverJie.service.IUserService;
|
10 | 9 | import com.crossoverJie.util.CommonUtil;
|
11 |
| -import com.crossoverJie.util.DateUtil; |
12 | 10 | import com.crossoverJie.util.PageUtil;
|
13 |
| -import com.crossoverJie.util.StringUtil; |
14 |
| -import com.fasterxml.jackson.databind.util.ObjectBuffer; |
| 11 | +import com.fasterxml.jackson.databind.util.JSONPObject; |
15 | 12 | import net.sf.json.JSONObject;
|
16 | 13 | import org.springframework.stereotype.Controller;
|
17 | 14 | import org.springframework.ui.Model;
|
18 |
| -import org.springframework.web.bind.annotation.*; |
19 |
| -import org.springframework.web.multipart.MultipartFile; |
20 |
| -import org.springframework.web.servlet.ModelAndView; |
| 15 | +import org.springframework.web.bind.annotation.RequestMapping; |
| 16 | +import org.springframework.web.bind.annotation.RequestMethod; |
| 17 | +import org.springframework.web.bind.annotation.RequestParam; |
| 18 | +import org.springframework.web.bind.annotation.ResponseBody; |
21 | 19 |
|
22 | 20 | import javax.annotation.Resource;
|
23 | 21 | import javax.servlet.http.HttpServletRequest;
|
24 | 22 | import javax.servlet.http.HttpServletResponse;
|
25 |
| -import java.io.File; |
26 | 23 | import java.io.IOException;
|
27 | 24 | import java.util.HashMap;
|
28 | 25 | import java.util.List;
|
@@ -51,6 +48,8 @@ public String index(@RequestParam(value = "page", required = false, defaultValue
|
51 | 48 | model.addAttribute("users", users);
|
52 | 49 | StringBuffer param = new StringBuffer();
|
53 | 50 |
|
| 51 | + |
| 52 | + |
54 | 53 | String pageHtml = PageUtil.genPagination(request.getContextPath() + "/index", total, page, 10, param.toString());
|
55 | 54 | model.addAttribute("pageHtml", pageHtml);
|
56 | 55 | return "index";
|
|
0 commit comments