Spring获取URL相关信息时间:2023-03-09 20:55:32 获取请求的URL:request.getRequestURL().toString(); 获取上下文名称(项目名称):request.getContextPath()