- 链接地址:https://blog.csdn.net/qq_39327985/article/details/106096859
- 链接标题:Spring中如何拿到request_spring 得到 request theadlocal-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:9461
文章浏览阅读395次。比如我在service层方法中想要拿到request对象,可以通过controller层来传递,这是一种方法,还有就是RequestContextHolder:/** * Holder class to expose the web request in the form of a thread-bound * {@link RequestAttributes} object. The request will be inherited * by any child threads spawned _spring 得到 request theadlocal
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除