类 HealthMvcEndpoint

    • 方法详细资料

      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        指定者:
        setEnvironment 在接口中 org.springframework.context.EnvironmentAware
      • setStatusMapping

        public void setStatusMapping​(Map<String,​org.springframework.http.HttpStatus> statusMapping)
        Set specific status mappings.
        参数:
        statusMapping - a map of status code to HttpStatus
      • addStatusMapping

        public void addStatusMapping​(Map<String,​org.springframework.http.HttpStatus> statusMapping)
        Add specific status mappings to the existing set.
        参数:
        statusMapping - a map of status code to HttpStatus
      • addStatusMapping

        public void addStatusMapping​(Status status,
                                     org.springframework.http.HttpStatus httpStatus)
        Add a status mapping to the existing set.
        参数:
        status - the status to map
        httpStatus - the http status
      • addStatusMapping

        public void addStatusMapping​(String statusCode,
                                     org.springframework.http.HttpStatus httpStatus)
        Add a status mapping to the existing set.
        参数:
        statusCode - the status code to map
        httpStatus - the http status
      • invoke

        @ActuatorGetMapping
        @ResponseBody
        public Object invoke​(javax.servlet.http.HttpServletRequest request,
                             Principal principal)