From 5a2b2f5ca7c7e5401f739b3d64a9e2ded90cbc5d Mon Sep 17 00:00:00 2001 From: aresLD <43395830+aresLD@users.noreply.github.com> Date: Mon, 31 May 2021 16:21:44 +0800 Subject: [PATCH] fix typo (#1807) --- .../server/app/configuration/ArthasProperties.java | 10 +++++----- .../tunnel/server/app/web/DetailAPIController.java | 4 ++-- .../src/main/resources/application.properties | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/ArthasProperties.java b/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/ArthasProperties.java index 1b59c8cd1..0eb95c24d 100644 --- a/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/ArthasProperties.java +++ b/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/configuration/ArthasProperties.java @@ -25,7 +25,7 @@ public class ArthasProperties { /** * supoort apps.html/agents.html */ - private boolean enableDetatilPages = false; + private boolean enableDetailPages = false; public Server getServer() { return server; @@ -43,12 +43,12 @@ public class ArthasProperties { this.embeddedRedis = embeddedRedis; } - public boolean isEnableDetatilPages() { - return enableDetatilPages; + public boolean isEnableDetailPages() { + return enableDetailPages; } - public void setEnableDetatilPages(boolean enableDetatilPages) { - this.enableDetatilPages = enableDetatilPages; + public void setEnableDetailPages(boolean enableDetailPages) { + this.enableDetailPages = enableDetailPages; } public static class Server { diff --git a/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/DetailAPIController.java b/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/DetailAPIController.java index c05fee350..12430efa6 100644 --- a/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/DetailAPIController.java +++ b/tunnel-server/src/main/java/com/alibaba/arthas/tunnel/server/app/web/DetailAPIController.java @@ -40,7 +40,7 @@ public class DetailAPIController { @RequestMapping("/api/tunnelApps") @ResponseBody public Set tunnelApps(HttpServletRequest request, Model model) { - if (!arthasProperties.isEnableDetatilPages()) { + if (!arthasProperties.isEnableDetailPages()) { throw new IllegalAccessError("not allow"); } @@ -67,7 +67,7 @@ public class DetailAPIController { @ResponseBody public Map tunnelAgentIds(@RequestParam(value = "app", required = true) String appName, HttpServletRequest request, Model model) { - if (!arthasProperties.isEnableDetatilPages()) { + if (!arthasProperties.isEnableDetailPages()) { throw new IllegalAccessError("not allow"); } diff --git a/tunnel-server/src/main/resources/application.properties b/tunnel-server/src/main/resources/application.properties index ffe60575f..81a8cdfec 100755 --- a/tunnel-server/src/main/resources/application.properties +++ b/tunnel-server/src/main/resources/application.properties @@ -10,7 +10,7 @@ management.endpoints.web.exposure.include=* spring.security.user.name=arthas -arthas.enable-detatil-pages=true +arthas.enable-detail-pages=true spring.cache.type=caffeine spring.cache.cache-names=inMemoryClusterCache spring.cache.caffeine.spec=maximumSize=3000,expireAfterAccess=3600s