/springboot-eureka-service

Primary LanguageJavaApache License 2.0Apache-2.0

SpringBoot Eureka Github Template

This template provides a microservice starter using spring boot together with spring cloud eureka for service discovery. It provides a sample openapi.yaml file in resources/static and uses the openapi-codegen-plugin to generate pojos and API Interface. Make sure you run mvn clean package before heading to the SampleController and start your implementation.

Build Only (No Tests)

./mvnw clean package -DskipUTs=true

Build and Run Unit Tests

./mvnw clean package

Build and Run Integration Tests only

./mvnw clean verify -DskipUTs=true

Build and Run Unit Tests + Integration Tests

./mvnw clean verify

Run

./mvnw spring-boot:run

Uses GoogleContainerJib to create Distroless Image

Docker Image

./mvnw compile jib:build

Swagger-UI

H2-Console

Actuator

Contributing

Contributions to this library are always welcome and highly encouraged.

See google-cloud's CONTRIBUTING documentation and the shared documentation for more information on how to get started.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Code of Conduct for more information.

License

Apache 2.0 - See LICENSE for more information.