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
*/
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 {

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

@ -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

Loading…
Cancel
Save