Back to Templates
Java Spring Boot

Spring Boot 3 Starter with Maven, JUnit 5, Testcontainers & Docker

Spring Boot with Maven, testing, and Docker

terminal
npx setupkaro init my-app --template java-spring
Zero installNo telemetryMIT License

What's Included

  • Spring Boot 3.2 + Java 21 + Maven Wrapper
  • JUnit 5 + AssertJ + Testcontainers (Postgres for integration tests)
  • Spotless (Google Java Format) + Checkstyle + PMD
  • Spring Boot 3 virtual threads (preview) + structured logging
  • GitHub Actions: fmt, lint, test (with Testcontainers), build, docker
  • Multi-stage Dockerfile (Eclipse Temurin JRE 21, non-root) + docker-compose
  • Maven properties for dependency versions + dependency management
  • Generated README with profiles and Maven commands

Generated Folder Structure

src/
main/
java/com/setupkaro/
resources/
application.yml
application-docker.yml
test/
java/com/setupkaro/
.github/workflows/ci.yml
Dockerfile
docker-compose.yml
pom.xml
mvnw
mvnw.cmd
.mvn/wrapper/maven-wrapper.properties
checkstyle.xml
pmd-rules.xml
spotless.plugin.xml
README.md

Quick Start Commands

Generate Project

terminal
npx setupkaro init my-app --template java-spring

Next Steps

cd my-app
./mvnw spring-boot:run

Frequently Asked Questions

Why Maven instead of Gradle?
Maven is more common in enterprise Spring teams. The wrapper ensures consistent builds.
Does it include Spring Security / OAuth2?
No — the template is a clean REST API base. Add `spring-boot-starter-security` after generation.
What about Spring Data JPA / Hibernate?
The template includes the dependencies. Entity/repository examples are in src/main/java.
Can I use this with GraalVM native images?
Spring Boot 3 supports GraalVM. Add the native profile and build with `./mvnw -Pnative native:compile`.

Generate Another Template

React + TypeScript

Vite + React + TS with Tailwind and React Router

terminal
npx setupkaro init my-app --template react-ts

Replace my-app with your project name.

Ready to generate your Java Spring Boot project?

One command. Production-ready. Start building in seconds.

terminal
npx setupkaro init my-app --template java-spring