前景提要
HDC调试需求开发(15万预算),能者速来!>>> freemarker: expose-request-attributes: true expose-session-attributes: true request-context-attribute: request request:${request} 打印出org.springframework.web.servlet.support.RequestContext@9d44d45 但是按request的方法去取值根本取不到或报错,如request.getRequestURL()
现在只能在Controller里绑定,然后在模板里才能正常调用 model.addAttribute("request", request);