Spring Boot Config Generator
Runs locally in your browser. Your input is not uploaded.Free, no sign-up
Application
Web
Data
Messaging
Operations and security
application.yml
Generate Spring Boot configuration for PostgreSQL, Redis, Kafka, Actuator, HikariCP and more.
How to use the Spring Boot Config Generator
- Enter your application's name and base package, then tick the features you use.
- Copy
application.yml(or the.propertiesversion) intosrc/main/resources. - Open Dependencies for the starters and drivers to add to your
pom.xmlorbuild.gradle.
What the generated config does
- Environment placeholders:
${DB_URL:jdbc:…}uses the environment variable when set and the local default otherwise, so the same file works on your laptop, in Docker and in Kubernetes. Secrets have empty defaults. - Safe defaults: open-in-view off, schema from migrations with
ddl-auto: validate, UTC for JDBC times, only health and info exposed on Actuator. - Kubernetes-ready: graceful shutdown and liveness/readiness probes at
/actuator/health/livenessand/readiness. - Profiles:
devturns on debug logging and SQL output;prodwrites JSON logs. Activate one withSPRING_PROFILES_ACTIVE=prod.
Frequently asked questions
Which Spring Boot version is this for?
Spring Boot 3.x (Jakarta EE, Java 17+). Virtual threads need Boot 3.2+ on Java 21, and structured logging Boot 3.4+.
Why does Flyway need a second dependency?
Since Flyway 10, support for most databases (PostgreSQL, MySQL, SQL Server, Oracle) is in a separate module, such as flyway-database-postgresql. Without it Flyway fails with "Unsupported Database".
Related tools
All tools- Spring Properties ↔ YAMLConvert Spring Boot application.properties to application.yml and back.
- Maven Dependency HelperGenerate and format Maven dependency XML, parse coordinates and build Maven commands.
- Gradle Command HelperBuild common Gradle commands and flags.
- CORS Header GeneratorGenerate CORS configuration for Spring Boot, Nginx, Express and Apache.
- Java Stack Trace FormatterClean up Java stack traces, highlight application frames and find the root cause.