java获取当前服务器地址 例 http://localhost:xxxx String path=request.getScheme()+"://"+request.getServerName()+":"+request.getLocalPort(); http://localhost:xxxx