@Autowired
private HttpServletRequest req;
String url = this.req.getScheme() + "://" + this.req.getServerName()
+ ":" + this.req.getServerPort() + this.req.getServletPath();
if (this.req.getQueryString() != null) {
url += "?" + this.req.getQueryString();
转载请注明原文地址: https://ju.6miu.com/read-963001.html