SpringBoot三种获取Request和Response的方法
通过静态方法获取,你也可以封装一个静态方法出来@GetMapping(value = "")public String center() { ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes()...
转载
2018-10-16 10:20:17 ·
90972 阅读 ·
13 评论