更新
This commit is contained in:
1 parent
d6765a818c
commit
36e855602d
1 file changed
+1
-3
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user