docker build -t reactive-viacep:1.0.0 .
docker run --name reactive-viacep_container -p 8080:8080 -d reactive-viacep:1.0.0
{
"cep": "03252-000",
"logradouro": "Rua Barbeiro de Sevilha",
"complemento": "",
"bairro": "Vila Rosa Molla",
"localidade": "São Paulo",
"uf": "SP",
"ibge": "3550308",
"gia": "1004",
"ddd": "11",
"siafi": "7107",
"_links": {
"self": {
"href": "http://localhost:8080/api/03252000"
}
}
}
mvn clean package
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<finalName>application</finalName> *Name of JAR file*
</build>
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring HATEOAS
- Spring Reactive Web
The following guides illustrate how to use some features concretely: