特牛网址导航

Spring中如何拿到request_spring 得到 request theadlocal-CSDN博客

网友收藏
文章浏览阅读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