Skip to content

lvivJavaClub/http2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP/2 with Spring Boot based on jetty9

NOTE: you have to use OpenJDK to tun this sample. More details: TBD

Building this project

From the command line, run

$ mvn clean install

Running this project

From the command line, run

$ mvn spring-boot:run

From the command line, run

 java -Xbootclasspath/p:$HOME/.m2/repository/org/mortbay/jetty/alpn/alpn-boot/8.1.12.v20180117/alpn-boot-8.1.12.v20180117.jar -jar target/http2-0.0.1-SNAPSHOT.jar 

In your IDE, you have to run the Http2Application class and customize your run configuration to add a JVM argument:

 -Xbootclasspath/p:$HOME/.m2/repository/org/mortbay/jetty/alpn/alpn-boot/8.1.12.v20180117/alpn-boot-8.1.12.v20180117.jar

How to use

See https://localhost:8443

or use command line

curl --http2 -k -v https://localhost:8443