Web Server Factory Customizer (server/WebServerFactoryCustomizer.java)

spring-boot · module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/WebServerFactoryCustomizer.java · java · Apache-2.0
infra, fw:spring, tag:web-server, tag:customization, tag:bean-post-processor, tag:configuration

Strategy interface for customizing web server factories before startup, letting you set port, address, and error pages. Reuse to programmatically configure embedded servers.

// Source: https://github.com/spring-projects/spring-boot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright 2012-present the original author or authors.
 */

package org.springframework.boot.web.server;

import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * Strategy interface for customizing {@link WebServerFactory web server factories}. Any
 * beans of this type will get a callback with the server factory before the server itself
 * is started, so you can set the port, address, error pages etc.
 * <p>
 * Beware: calls to this interface are usually made from a
 * {@link WebServerFactoryCustomizerBeanPostProcessor} which is a
 * {@link BeanPostPro

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key