From c07620d37501a965a1d64a042ef2436ac58ad53f Mon Sep 17 00:00:00 2001 From: jyx <1584081113@qq.com> Date: Tue, 15 Jan 2019 14:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BA=A7=E5=93=81=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SearchServiceController.java | 3 +- demo/src/main/resources/static/index.html | 110 +++++++++--------- .../main/resources/static/productshow.html | 2 +- 3 files changed, 59 insertions(+), 56 deletions(-) diff --git a/demo/src/main/java/com/example/demo/searchService/controller/SearchServiceController.java b/demo/src/main/java/com/example/demo/searchService/controller/SearchServiceController.java index c50c411..0c5aec3 100644 --- a/demo/src/main/java/com/example/demo/searchService/controller/SearchServiceController.java +++ b/demo/src/main/java/com/example/demo/searchService/controller/SearchServiceController.java @@ -54,8 +54,9 @@ public class SearchServiceController{ public List showPro(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{ List products = productSearchService.findByCount(); response.setCharacterEncoding("utf-8"); + System.out.println(products); return products; //String json = JSONObject.toJSONString(list); - // response.getWriter().print(json); + //response.getWriter().print(json); } } diff --git a/demo/src/main/resources/static/index.html b/demo/src/main/resources/static/index.html index b1eb56a..325b179 100644 --- a/demo/src/main/resources/static/index.html +++ b/demo/src/main/resources/static/index.html @@ -8,11 +8,57 @@ - + + - +
@@ -115,9 +161,14 @@
-
-
-
+
+
+
+
+
+ +
+
; @@ -164,55 +215,6 @@
- diff --git a/demo/src/main/resources/static/productshow.html b/demo/src/main/resources/static/productshow.html index c17c382..63ccc8f 100644 --- a/demo/src/main/resources/static/productshow.html +++ b/demo/src/main/resources/static/productshow.html @@ -45,7 +45,7 @@
产品1
-

1111

+

1111