代码如何写?求大神带路

解决方案 »

  1.   

    就像信息查询系统,怎么通过信息中的id查询出该id的整条数据
      

  2.   

    private void SelectEducationInfo(HttpServletRequest request,
    HttpServletResponse response) throws IOException {
    int UserID = Integer.valueOf(request.getParameter("UserID"));
    Education bookType = ma.SelectEducationInfo(UserID);// 学历认证--数据回填用户ID
    if (bookType != null) {
    response.setContentType("text/json");
    JSONObject object=JSONObject.fromObject(bookType);
    PrintWriter out = response.getWriter();
    out.write(object.toString());
    out.flush();
    out.close();
    } else {
    String str = "false";
    response.setContentType("text/json");
    JSONObject object=JSONObject.fromObject(str);
    PrintWriter out = response.getWriter();
    out.write(object.toString());
    out.flush();
    out.close();
    } }
      

  3.   

    前提是你要有JSONObject这些包
      

  4.   

    https://me.csdn.net/weixin_44540436
    可以去参考我同学的案例