Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/humbertodias/spring-boot-rest-with-http2

Spring-Boot with REST over HTTP2
https://github.com/humbertodias/spring-boot-rest-with-http2

amadeus-api http2 spring-boot undertow

Last synced: 5 days ago
JSON representation

Spring-Boot with REST over HTTP2

Awesome Lists containing this project

README

        

[![Build, Test](https://github.com/humbertodias/spring-boot-rest-with-http2/actions/workflows/build.yml/badge.svg)](https://github.com/humbertodias/spring-boot-rest-with-http2/actions/workflows/build.yml)

# SpringBoot/HTTP2

Spring-Boot with REST using Undertow over HTTP2

# Requisites

1. [Java](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) 8+
2. [Maven](https://maven.apache.org/download.cgi) 3+

# Play

```shell
mvn spring-boot:run
```

or

```shell
mvn clean build
java -jar target/spring-boot-rest-with-http2-0.0.1-SNAPSHOT.jar
```

# Access

https://localhost:8443/swagger-ui.html

![](doc/swagger-amadeus.png)

# Optionals

HTTP 1.1

```shell
mvn spring-boot:run -Dserver.ssl.enabled=false -Dserver.http2.enabled=false
```

Server Port

```shell
mvn spring-boot:run -Dserver.port=9090
```

# Mappings

https://localhost:8443/actuator/mappings

https://localhost:8443/swagger-resources

# References

* [HTTP2 Configuration](http://www.baeldung.com/spring-boot-application-configuration)

* [Undertow from JBOSS](http://undertow.io)

* [Swagger Configuration](http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api)

* [Certificate SSL](https://www.thomasvitale.com/https-spring-boot-ssl-certificate)

* [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)

* [Swagger Codegen with Maven](https://www.clianz.com/2016/05/29/java-mvc-swagger-gen/)

* [OpenAPI documentation](https://www.baeldung.com/spring-rest-openapi-documentation)

* [SpringDoc](https://springdoc.org/springdoc-properties.html)