Configuration Properties Articles
2 articles about Configuration Properties. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Validate Spring Boot @ConfigurationProperties with Bean Validation - A Fail Fast Implementation Guide for Detecting Configuration Errors at Startup
Learn how to combine Spring Boot @ConfigurationProperties with Bean Validation (@Validated/@NotBlank/@Pattern) to catch configuration errors at application startup, before they become production incidents. Covers nested validation with @Valid propagation, how to read startup error messages, and lightweight testing with ApplicationContextRunner, all with implementation examples.
-
Managing Configuration with application.properties/yml in Spring Boot - When to Use @Value vs @ConfigurationProperties
A practical guide covering the basic syntax of Spring Boot configuration files, how to choose between @Value and @ConfigurationProperties in real-world projects, and configuration management using environment variables and placeholders.