Info endpoint

See gh-3492
This commit is contained in:
Meang Akira Tanaka
2015-07-14 19:42:34 +02:00
committed by Stephane Nicoll
parent 0f820afa86
commit 8bebe6dea9
15 changed files with 786 additions and 55 deletions

View File

@@ -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";
}
}