@Nullable
    private static CorsServiceBuilder corsServiceBuilder(CorsEndpointProperties corsProperties) {
        if (corsProperties.getAllowedOrigins().isEmpty()) {
            return null;
        }

        final CorsServiceBuilder cors = CorsService.builder(corsProperties.getAllowedOrigins());
        if (!corsProperties.getAllowedMethods().contains("*")) {
            if (corsProperties.getAllowedMethods().isEmpty()) {
                cors.allowRequestMethods(HttpMethod.GET);
            } else {
                cors.allowRequestMethods(
                        corsProperties.getAllowedMethods().stream().map(HttpMethod::valueOf)::iterator);
            }
        }

        if (!corsProperties.getAllowedHeaders().isEmpty() &&
            !corsProperties.getAllowedHeaders().contains("*")) {
            cors.allowRequestHeaders(corsProperties.getAllowedHeaders());
        }

        if (!corsProperties.getExposedHeaders().isEmpty()) {
            cors.exposeHeaders(corsProperties.getExposedHeaders());
        }

        if (Boolean.TRUE.equals(corsProperties.getAllowCredentials())) {
            cors.allowCredentials();
        }

        cors.maxAge(corsProperties.getMaxAge());
        return cors;
    }
Returns a {@link HttpCodeStatusMapper}.
See <a href="https://github.com/spring-projects/spring-boot/blob/9643dbeed26268f37d37c22385704de8911b8f21/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc#writing-custom-healthindicators">writing-custom-healthindicators</a>.
spring/boot3-actuator-autoconfigure/src/main/java/com/linecorp/armeria/spring/actuate/ArmeriaSpringActuatorAutoConfiguration.java