首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

SpringMVC 源码分析之 FrameworkServlet

RequestAttributes 有诸多实现类,默认使用的是 ServletRequestAttributes,通过 ServletRequestAttributes,我们可以 getRequest、...在 ServletRequestAttributes 的具体实现中,会通过 scope 参数判断操作 request 还是操作 session(如果小伙伴们不记得 Spring 中的作用域问题,可以公号后台回复...spring,看看松哥录制的免费的 Spring 入门教程,里边有讲),我们来看一下 ServletRequestAttributes#setAttribute 方法(get/remove 方法执行逻辑类似...servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); HttpServletRequest...request = servletRequestAttributes.getRequest(); HttpServletResponse response = servletRequestAttributes.getResponse

48420

扫码

添加站长 进交流群

领取专属 10元无门槛券

手把手带您无忧上云

扫码加入开发者社群

热门标签

活动推荐

    运营活动

    活动名称
    广告关闭
    领券