Example HTTP/2 server implemented in Java
Please follow the install setup for Java first before deploying this java app.
Deploy the app
export DOMAIN=my.cf.app.domain
cf push -f app-manifest.yml --var domain=$DOMAINcf push --no-route java-http2-test --buildpack java_buildpack
# my.cf.app.domain is used as an example for demonstration purpose
cf map-route java-http2-test my.cf.app.domain --hostname java-http2-test --app-protocol http2curl -v --http2-prior-knowledge https://java-http2-test.my.cf.app.domain The app supports HTTP/1.1 and HTTP/2 H2C if requested explicitly, i.e. no connection upgrade.
./gradlew buildPORT=8080 ./gradlew runcurl -v --http2-prior-knowledge http://localhost:8080
