springboot中取得request

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

ServletRequestAttributes servlet = (ServletRequestAttributes) RequestContextHolder
					.currentRequestAttributes();

猜你喜欢

转载自blog.csdn.net/tianlong1569/article/details/89407826
今日推荐