Skip to main content

start-examples-rest-springboot.py

start-examples-rest-springboot.py starts the Juneau REST examples application using Spring Boot. This demonstrates how Juneau integrates with the Spring Boot framework.

What It Does

The script performs these operations:

  1. Locates Project - Finds the Juneau project root directory
  2. Checks Build - Verifies that classes are compiled
  3. Auto-Builds - Runs mvn clean compile if classes are missing
  4. Starts Server - Launches the Spring Boot REST examples application
  5. Handles Shutdown - Gracefully stops the server on Ctrl+C

Usage

Start the Server

cd /Users/james.bognar/git/juneau
python3 scripts/start-examples-rest-springboot.py

The server will start at http://localhost:5000/

Press Ctrl+C to stop the server.

Requirements

  • Python 3.6 or higher
  • Maven (mvn command must be in PATH)
  • Java 17+
  • No external Python dependencies (uses only standard library)

Notes

  • The script automatically builds the project if needed
  • The server runs in the foreground
  • Swagger UI is typically available at http://localhost:5000/swagger-ui
Discussion

Share feedback or follow-up questions for this page directly through GitHub.