标签:response ase mac 3.1 Servle ons gets abstract AC
使用 ${springMacroRequestContext.contextPath} 即可,只是从原来的 ${request.contextPath} 稍作修改。
但 springMacroRequestContext 是个什么东西呢?
最后在 spring-webmvc 这个包中找到了答案,具体是 org\springframework\web\servlet\view\AbstractTemplateView.class 这个类,在 4.3.14.RELEASE 这个版本中,第 88 行:
model.put("springMacroRequestContext", new RequestContext(request, response, this.getServletContext(), model));标签:response ase mac 3.1 Servle ons gets abstract AC
原文地址:https://www.cnblogs.com/StarUDream/p/9045493.html