@RequestMapping( value = "/turnLogOff", method = RequestMethod.GET, produces = MediaType.TEXT_PLAIN_VALUE) @ResponseBody public String turnOffLog() { configurableBean.setShouldLogVisit(false); return "Log turned off..."; }
@RequestMapping( value = "/unhealthy", method = RequestMethod.GET, produces = MediaType.TEXT_PLAIN_VALUE) @ResponseBody public String markUnhealthy() { configurableBean.setHealthy(false); return "Server marked unhealthy"; }