This commit is contained in:
cyk
2023-07-02 14:00:34 +08:00
parent d6765a818c
commit 36e855602d

View File

@@ -40,9 +40,7 @@ public class countNumServlet extends HttpServlet {
resp.setContentType("application/json;charset=UTF-8");
PrintWriter writer = resp.getWriter();
String str= String.valueOf(projectService.countAll());
String jsonString = JSONObject.toJSONString(str);
writer.println(jsonString);
writer.println(projectService.countAll());
writer.close();
}