/spring-boot-examples

Some sample spring-boot applications to

Primary LanguageJavaApache License 2.0Apache-2.0

spring-boot-examples

Collection of minimal spring-boot applications to use as notes on setting up and getting started with using spring-boot as a starting point for applications and services.

The top level mvnw and mvnw.cmd Maven stubs should be usable to build all subprojects from the top level, or individual projects. For example, to build just spring-boot-logging:

cd spring-boot-logging
../mvnw install
  • Configuring actuators so logging levels can be dynamically adjusted at runtime.
  • Examples of unit testing for logging statements.
  • Simple REST controller.
  • Annotations to REST controller and configuring for OpenAPI and Swagger UI.
  • Creating a spring-boot project that is compiled into a native executable that does not require a JVM to execute.
  • How convert a spring-boot JAR file or native executable into a container image.
  • How to run the container image in docker.
  • Minimal steps to deploy container image into Kubernetes.