A Spring Boot 3.5 REST API starter in Java 17, built with the Maven wrapper, for Java developers who want a clean Spring Web service to rename and extend. It includes a controller, a service and record DTOs, Bean Validation, RFC 9457 error responses and JUnit 5 tests with MockMvc.
by Light CloudREST APIs
The starter uses plain Spring Web on embedded Tomcat with constructor injection, records for responses and a @RestControllerAdvice that extends ResponseEntityExceptionHandler, so Spring's own errors and yours share one format. The hello package is the pattern to copy: add a sibling package with its own controller, service and records, and component scanning picks it up. Light Cloud builds the jar with Maven and runs it as a container on PORT, redeploying on each push to your copy.
Create a package next to hello/ with a @RestController class and a @GetMapping or @PostMapping method that returns a record. Component scanning finds it, so there is nothing to register.
This starter already does: GlobalExceptionHandler extends ResponseEntityExceptionHandler, so validation errors and unknown routes come back as application/problem+json. Return a ProblemDetail from your own @ExceptionHandler methods to add more cases.
Add the org.springdoc:springdoc-openapi-starter-webmvc-ui dependency to pom.xml. springdoc then serves Swagger UI at /swagger-ui.html.
Add spring-boot-starter-data-jpa and the PostgreSQL driver to pom.xml and set the spring.datasource properties from environment variables. The spring-boot-postgresql-crud-api template has this already wired up.
Yes. Build it with ./mvnw clean package and run java -jar target/*.jar on any host with Java 17, or build a container image with ./mvnw spring-boot:build-image.

Start a Java CRUD API on PostgreSQL with Spring Boot, Swagger UI and Bean Validation
Start a Java REST API on Quarkus with live reload and settings from the environment
Start a C# minimal API on .NET 8 with settings, CORS, health check and Docker set up