Java 类org.springframework.boot.web.server.WebServerFactoryCustomizer 实例源码

项目:loc-framework    文件:TomcatGracefulShutdownAutoConfiguration.java   
@Bean
public WebServerFactoryCustomizer tomcatFactoryCustomizer() {
  return server -> {
    if (server instanceof TomcatServletWebServerFactory) {
      ((TomcatServletWebServerFactory) server).addConnectorCustomizers(tomcatGracefulShutdown());
    }
  };
}