JavaScript获取当前页面的URL 、链接地址
var currUrl = decodeURIComponent(location.href.split('#')[0]);
java获取方式:https://www.cnblogs.com/pxblog/p/13740579.html