Configuration Management Articles
2 articles about Configuration Management. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Split and Externalize Configuration Files with Spring Boot's spring.config.import
Explains how to use spring.config.import, available in the Config Data API since Spring Boot 2.4, with code examples covering the use of optional:, choosing between classpath:/file:, the load order priority of multiple files, and externalizing secret files.
-
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.