Springboot之HttpServletRequest

HttpServletRequest request

url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf86b25c890e78556&redirect_uri=https%3A%2F%2Fceshi.mzdxj.cn%2Fweixin%2Flogin&response_type=code&scope=snsapi_base&state=https://ceshi.mzdxj.cn/web/index.html#/home#wechat_redirect"

System.out.println("url:"+request.getRequestURI());
System.out.println("host:"+request.getHeader("Host"));
System.out.println("contextpath:"+request.getContextPath());
System.out.println("STATE:"+request.getParameter("state"));
System.out.println("URL:"+request.getRequestURL());

猜你喜欢

转载自blog.csdn.net/qq_29752857/article/details/113430753