MCPcopy Create free account
hub / github.com/L1yp/van-app / Http2Configuration

Class Http2Configuration

src/main/java/com/l1yp/conf/Http2Configuration.java:13–21  ·  view source on GitHub ↗

@Author Lyp @Date 2020/6/30 @Email l1yp@qq.com

Source from the content-addressed store, hash-verified

11 * @Email l1yp@qq.com
12 */
13@Configuration
14public class Http2Configuration {
15 @Bean
16 public UndertowServletWebServerFactory embeddedServletContainerFactory() {
17 UndertowServletWebServerFactory factory = new UndertowServletWebServerFactory();
18 factory.addBuilderCustomizers(builder -> builder.setServerOption(UndertowOptions.ENABLE_HTTP2, true));
19 return factory;
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected