pull/1809/head
aresLD 4 years ago committed by GitHub
parent 57259ec3ed
commit 5a2b2f5ca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ public class ArthasProperties {
/** /**
* supoort apps.html/agents.html * supoort apps.html/agents.html
*/ */
private boolean enableDetatilPages = false; private boolean enableDetailPages = false;
public Server getServer() { public Server getServer() {
return server; return server;
@ -43,12 +43,12 @@ public class ArthasProperties {
this.embeddedRedis = embeddedRedis; this.embeddedRedis = embeddedRedis;
} }
public boolean isEnableDetatilPages() { public boolean isEnableDetailPages() {
return enableDetatilPages; return enableDetailPages;
} }
public void setEnableDetatilPages(boolean enableDetatilPages) { public void setEnableDetailPages(boolean enableDetailPages) {
this.enableDetatilPages = enableDetatilPages; this.enableDetailPages = enableDetailPages;
} }
public static class Server { public static class Server {

@ -40,7 +40,7 @@ public class DetailAPIController {
@RequestMapping("/api/tunnelApps") @RequestMapping("/api/tunnelApps")
@ResponseBody @ResponseBody
public Set<String> tunnelApps(HttpServletRequest request, Model model) { public Set<String> tunnelApps(HttpServletRequest request, Model model) {
if (!arthasProperties.isEnableDetatilPages()) { if (!arthasProperties.isEnableDetailPages()) {
throw new IllegalAccessError("not allow"); throw new IllegalAccessError("not allow");
} }
@ -67,7 +67,7 @@ public class DetailAPIController {
@ResponseBody @ResponseBody
public Map<String, AgentClusterInfo> tunnelAgentIds(@RequestParam(value = "app", required = true) String appName, public Map<String, AgentClusterInfo> tunnelAgentIds(@RequestParam(value = "app", required = true) String appName,
HttpServletRequest request, Model model) { HttpServletRequest request, Model model) {
if (!arthasProperties.isEnableDetatilPages()) { if (!arthasProperties.isEnableDetailPages()) {
throw new IllegalAccessError("not allow"); throw new IllegalAccessError("not allow");
} }

@ -10,7 +10,7 @@ management.endpoints.web.exposure.include=*
spring.security.user.name=arthas spring.security.user.name=arthas
arthas.enable-detatil-pages=true arthas.enable-detail-pages=true
spring.cache.type=caffeine spring.cache.type=caffeine
spring.cache.cache-names=inMemoryClusterCache spring.cache.cache-names=inMemoryClusterCache
spring.cache.caffeine.spec=maximumSize=3000,expireAfterAccess=3600s spring.cache.caffeine.spec=maximumSize=3000,expireAfterAccess=3600s

Loading…
Cancel
Save