Created
August 23, 2015 09:11
-
-
Save barlog-m/1b102bf288f4feb2bd1b to your computer and use it in GitHub Desktop.
Enable HTTP2 in Undertow with Spring Boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SpringBootUndertowHTTP2 { | |
@Bean | |
UndertowEmbeddedServletContainerFactory embeddedServletContainerFactory() { | |
UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory(); | |
factory.addBuilderCustomizers( | |
builder -> builder.setServerOption(UndertowOptions.ENABLE_HTTP2, true)); | |
return factory; | |
} | |
} |
It didn't work for POST and PATCH method. It works for DELETE and GET. How to make it works for POST and PATCH method ?
Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kotlin spring 2.0 with undertow