zoukankan      html  css  js  c++  java
  • HttpServletResponse 的构建

    viewandmodel中的数据最终序列化后写入response;

    没有的话则不做处理mv != null;

    @RequestMapping("/login")
      public void login(User user, HttpServletResponse response){
        response.getWriter.write(JSONObject.fromObject(user).toString());
      }

    @Override

    public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response)

    throws Exception {

    response.setContentType(getContentType());

    FileCopyUtils.copy(this.resource.getInputStream(), response.getOutputStream());

    }

    processDispatchResult

    // Did the handler return a view to render?

    if (mv != null && !mv.wasCleared()) {

    render(mv, request, response);

    if (errorView) {

    WebUtils.clearErrorRequestAttributes(request);

    }

    }

    render(Map<String, ?>, HttpServletRequest, HttpServletResponse) : void - org.springframework.boot.autoconfigure.web.servlet.error.DefaultErrorViewResolver.HtmlResourceView

    render(ModelAndView, HttpServletRequest, HttpServletResponse) : void - org.springframework.web.servlet.DispatcherServlet

    processDispatchResult(HttpServletRequest, HttpServletResponse, HandlerExecutionChain, ModelAndView, Exception) : void - org.springframework.web.servlet.DispatcherServlet

    render(ModelAndView, HttpServletRequest, HttpServletResponse) : void - org.springframework.test.web.servlet.TestDispatcherServlet

    processDispatchResult(HttpServletRequest, HttpServletResponse, HandlerExecutionChain, ModelAndView, Exception) : void - org.springframework.web.servlet.DispatcherServlet

    doDispatch(HttpServletRequest, HttpServletResponse) : void - org.springframework.web.servlet.DispatcherServlet

    doService(HttpServletRequest, HttpServletResponse) : void - org.springframework.web.servlet.DispatcherServlet

    processRequest(HttpServletRequest, HttpServletResponse) : void - org.springframework.web.servlet.FrameworkServlet

  • 相关阅读:
    VSCode显示多个Tab窗口
    react + antd实现动态菜单
    vue 全局插件封装--提示toast
    ElementUI之el-scrollbar+el-select组合
    vue 滚动条组件对比
    【智能车】NXP_MIMXRT1064库函数
    【模电学习】二极管的特性与参数
    【模电学习】半导体——N与P(2)
    【协议】IIC通信
    【模电学习】半导体——N与P(1)
  • 原文地址:https://www.cnblogs.com/feng9exe/p/12121338.html
Copyright © 2011-2022 走看看