Info endpoint
See gh-3492
This commit is contained in:
committed by
Stephane Nicoll
parent
0f820afa86
commit
8bebe6dea9
@@ -0,0 +1,21 @@
|
||||
package sample.actuator;
|
||||
|
||||
import org.springframework.boot.actuate.info.Info;
|
||||
import org.springframework.boot.actuate.info.InfoProvider;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ExampleInfoProvider implements InfoProvider {
|
||||
|
||||
@Override
|
||||
public Info provide() {
|
||||
Info result = new Info();
|
||||
result.put("somekey", "somevalue");
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String name() {
|
||||
return "example";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user