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