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 in Spring Boot with application.properties/yml - Choosing Between @Value and @ConfigurationProperties
This article provides a practical explanation of Spring Boot configuration files, from basic syntax to the practical distinction between @Value and @ConfigurationProperties, as well as configuration management using environment variables and placeholders.