examples/stacks/spring/README.md
This example combines Java, Spring Boot, and MySQL to expose a simple REST API. This example is based on the official Spring Boot Documentation.
Install Devbox
Prepare the database by running devbox run setup_db. This will create the user and database that Spring expects in stacks/spring/src/main/resources/application.properties
You can now start the Spring Boot service by running devbox run bootRun. This will start your MySQL service and run the application
You can test the service using GET localhost:8080/demo/all or POST localhost:8080/demo/add. See the Spring Documentation for more details.
devbox initdevbox add jdk@17 mysql@latest gradle@latestdevbox services up, and create the example DB and user using the setup_db.sql file in this directory.devbox.json and devbox.lock files are in the same directory as your build.gradle file.devbox search