Fall back to standard LiveBeansView behaviour when MBean is in use

Closes gh-8146
pull/8319/head
Andy Wilkinson 8 years ago
parent f27bb39af9
commit 04c8b912ee

@ -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());
}

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

Loading…
Cancel
Save