File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint
spring-boot-samples/spring-boot-sample-actuator Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ private void setLeafContext(ApplicationContext leafContext) {
75
75
76
76
@ Override
77
77
public String getSnapshotAsJson () {
78
+ if (this .leafContext == null ) {
79
+ return super .getSnapshotAsJson ();
80
+ }
78
81
return generateJson (getContextHierarchy ());
79
82
}
80
83
Original file line number Diff line number Diff line change 27
27
<groupId >org.springframework.boot</groupId >
28
28
<artifactId >spring-boot-starter-web</artifactId >
29
29
</dependency >
30
- <dependency >
30
+ <!-- < dependency>
31
31
<groupId>org.springframework.boot</groupId>
32
32
<artifactId>spring-boot-starter-security</artifactId>
33
- </dependency >
33
+ </dependency> -->
34
34
<dependency >
35
35
<groupId >org.springframework.boot</groupId >
36
36
<artifactId >spring-boot-starter-jdbc</artifactId >
You can’t perform that action at this time.
0 commit comments