在Springboot中获取HttpServletRequest,HttpServletResponse
今日知识分享:
HttpServletRequest request =((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
HttpServletResponse response =((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getResponse();
原文链接:https://blog.csdn.net/MeGoodtoo/java/article/details/105384986
if you want to go fast,go alone,if you want to go far,go together