From 1b349b7f60cad37c2e3f7d5050ac87da4797e983 Mon Sep 17 00:00:00 2001 From: wusheng Date: Sun, 10 Apr 2016 15:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82webui=E4=BE=9D?= =?UTF-8?q?=E7=84=B6=E4=BC=9A=E8=BF=9B=E8=A1=8C=E6=8C=81=E7=BB=AD=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ai/cloud/skywalking/web/controller/AuthFileController.java | 2 +- skywalking-webui/src/main/webapp/download/readme.md | 1 + .../src/main/webapp/pages/usr/authfile/download.ftl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 skywalking-webui/src/main/webapp/download/readme.md diff --git a/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java b/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java index 591bb3fc8..37b0f030c 100644 --- a/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java +++ b/skywalking-webui/src/main/java/com/ai/cloud/skywalking/web/controller/AuthFileController.java @@ -43,7 +43,7 @@ public class AuthFileController extends BaseController { return "usr/authfile/download"; } - @RequestMapping("/download/{applicationId}") + @RequestMapping("/download/{applicationCode}") public void exportApplicationAuthFile(HttpServletRequest request, HttpServletResponse response, @PathVariable("applicationCode") String applicationCode, String authType) throws Exception { if (StringUtil.isBlank(applicationCode)) { diff --git a/skywalking-webui/src/main/webapp/download/readme.md b/skywalking-webui/src/main/webapp/download/readme.md new file mode 100644 index 000000000..af506c70f --- /dev/null +++ b/skywalking-webui/src/main/webapp/download/readme.md @@ -0,0 +1 @@ +* 用于下载文件的暂存 \ No newline at end of file diff --git a/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl b/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl index f14de2855..ff5c5aa0a 100644 --- a/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl +++ b/skywalking-webui/src/main/webapp/pages/usr/authfile/download.ftl @@ -83,7 +83,7 @@ var form = $("
"); form.attr("style", "display:none"); form.attr("method", "post"); - form.attr("action", "${base}/usr/applications/authfile/download/" + applicationId); + form.attr("action", "${_base}/usr/applications/authfile/download/" + applicationId); var exportData = $(""); exportData.attr("type", "hidden"); exportData.attr("name", "exportData");