Posted On: Feb 22, 2018
You can enable HTTP/2 support in Spring Boot as follows: server.http2.enabled=true
Example:-
@Bean public ConfigurableServletWebServerFactory tomcatCustomizer() { TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
factory.addConnectorCustomizers(connector -> connector.addUpgradeProtocol(new Http2Protocol())); return factory; }
Never Miss an Articles from us.
Spring Boot is a system from “The Spring Team” to facilitate the bootstrapping and development of new Spring Applica..
Here are some of the various advantages of using Spring Boot:It is quite easy to create Spring Based applications with..
Various Spring Boot Features are as follows:Web Development Spring Application Application occasions and listeners Adm..