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 - Detecting Errors at Startup and Testing
A step-by-step guide to combining @Validated and @NotNull/@Pattern with @ConfigurationProperties to instantly detect misconfiguration at application startup. Covers testing configuration validation with @SpringBootTest.
-
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.