Return to site

๐Ÿ“Š POLL: SPRINGBOOT CONFIG: PROPERTIES OR YAML?

November 10, 2025

Spring Boot supports both properties and YAML for externalized config. And good news: Spring Initializr now lets you choose Properties or YAML directly in the form (recently surfaced on start.spring.io; support landed in Initializr v0.23).

- application.properties ๐Ÿ“„ โ€” Flat & explicit; great for grepping, diffs, and small configs. Fewer indentation pitfalls.

- application.yaml / yml ๐Ÿงพ โ€” Hierarchical & compact; shines for maps/lists and in-file profile sections (---). Watch whitespace.

- It depends ๐Ÿคทโ€. โ€” Let team standards, tooling (IDE linters, schema hints), and platform (K8s/Config Server/Vault) guide the pick.

โ€œAPIs should be easy to use and hard to misuse.โ€ โ€” Joshua Bloch, Effective Java

#SpringBoot #Java #Configuration #YAML #Properties #DevOps #Kubernetes #SpringFramework #CleanCode