import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
-
+
@RestController
public class HealthController {
- @RequestMapping(value = { "/health" }, method = RequestMethod.GET, produces = "application/json")
+ @GetMapping(value = { "/health" }, produces = "application/json")
public HealthStatus getWidgetCatalog(HttpServletRequest request, HttpServletResponse response) {
return new HealthStatus("ok");
}