/sb-actuator-nodb.rwwise.dev

Spring Boot Actuator with No DB

Primary LanguageJavaApache License 2.0Apache-2.0

Spring Boot Actuator with No DB Research Project

I am facing an issue where I cannot get a simple spring boot web project with just a hello world to launch with the actuator without it crashing because I do not have a DB. This is an effort to recreate that issue stand alone.

Installation

./gradlew clean build

Run this code

./gradlew bootRun

Test

curl http://localhost:8080/actuator
curl http://localhost:8080/hello

Generation

The initial generation of this project was done with Spring Boot Initializer

Options

  • Gradle
  • Spring Boot 3.3.0
  • Group: dev.rwwise
  • Artifact: sb_actuator_nodb
  • Name: Spring Boot Actuator with No DB
  • Description: Spring Boot Actuator with No DB Research Project
  • Packaging: Jar
  • Java: 21

Dependencies

  • Spring Web
  • Spring Boot Actuator

License

Apache Commons 2.0