Configuration Articles
2 articles about Configuration. Explore Spring Boot implementation, design, and operations across related topics.
-
Managing Configuration in Spring Boot with application.properties/yml - When to Use @Value vs ConfigurationProperties
A practical guide covering the basics of Spring Boot configuration file syntax, how to choose between @Value and @ConfigurationProperties in real-world projects, and managing settings with environment variables and placeholders.
-
How to Safely Switch Configurations per Environment Using Spring Boot Profiles
Using Spring Boot Profiles, you can switch configurations between development, staging, and production environments. This guide clearly explains how to write separate application.yml files, how to activate profiles, and common pitfalls to avoid.