"links": [
{
"rel": "self",
"href": "http://localhost:8180/actuator"
},
{
"rel": "autoconfig",
"href": "http://localhost:8180/autoconfig"
},
{
"rel": "dump",
"href": "http://localhost:8180/dump"
},
{
"rel": "mappings",
"href": "http://localhost:8180/mappings"
},
{
"rel": "metrics",
"href": "http://localhost:8180/metrics"
},
{
"rel": "health",
"href": "http://localhost:8180/health"
},
{
"rel": "trace",
"href": "http://localhost:8180/trace"
},
{
"rel": "beans",
"href": "http://localhost:8180/beans"
},
{
"rel": "loggers",
"href": "http://localhost:8180/loggers"
},
{
"rel": "auditevents",
"href": "http://localhost:8180/auditevents"
},
{
"rel": "configprops",
"href": "http://localhost:8180/configprops"
},
{
"rel": "heapdump",
"href": "http://localhost:8180/heapdump"
},
{
"rel": "env",
"href": "http://localhost:8180/env"
},
{
"rel": "info",
"href": "http://localhost:8180/info"
}
]
}
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
public class StatusService {
private String status;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
ApplicationContext context;
public StatusEndPoint() {
super("ff");
}
@Override
public String invoke() {
StatusService bean = context.getBean(StatusService.class);
return "The current Status is:" + bean.getStatus();
}
@Override
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException {
this.context = applicationContext;
}
}
public Endpoint<String> status(){
Endpoint<String> status = new StatusEndPoint();
return status;
}
StatusService statusService;
@RequestMapping("/change")
public String changeStatus(String status){
statusService.setStatus(status);
return "ok";
}