Fall back to standard LiveBeansView behaviour when MBean is in use

Closes gh-8146
This commit is contained in:
Andy Wilkinson 2017-02-08 20:49:16 +00:00
parent f27bb39af9
commit 04c8b912ee
2 changed files with 5 additions and 2 deletions

View File

@ -75,6 +75,9 @@ public class BeansEndpoint extends AbstractEndpoint<List<Object>>
@Override
public String getSnapshotAsJson() {
if (this.leafContext == null) {
return super.getSnapshotAsJson();
}
return generateJson(getContextHierarchy());
}

View File

@ -27,10 +27,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>