Skip to content
Tagged articles

property-injection

5 articles · Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 30, 2026 · Backend Development

Beyond @Value: Two painless ways to inject properties early in Spring Boot

This article explains why @Value, @ConfigurationProperties, and Environment cannot be used directly in BeanFactoryPostProcessor, and demonstrates two practical techniques—using Environment#getProperty and Binder with @ConfigurationProperties—to inject configuration properties without pain in early Spring Boot initialization.

BeanFactoryPostProcessorBinderConfigurationProperties
0 likes · 6 min read
Beyond @Value: Two painless ways to inject properties early in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 25, 2024 · Backend Development

Mastering Spring Boot Property Injection: @Value, @ConfigurationProperties, YAML & More

This guide walks through eight Spring Boot property injection techniques—including @Value placeholders, SpEL expressions, @ConfigurationProperties, custom @PropertySource, YAML factories, Environment access, custom annotations, programmatic loading, and command‑line arguments—showing code examples and expected outputs for each method.

@ValueConfigurationPropertiesEnvironment
0 likes · 9 min read
Mastering Spring Boot Property Injection: @Value, @ConfigurationProperties, YAML & More
Programmer DD
Programmer DD
Jun 14, 2023 · Backend Development

Mastering Spring Property Injection: From XML to SpEL

This article provides a comprehensive guide to Spring's property injection techniques, covering setter and constructor injection using both XML and Java annotations, external configuration with @PropertySource, and advanced SpEL expressions, complete with runnable code examples and output screenshots.

AnnotationsJavaSpEL
0 likes · 27 min read
Mastering Spring Property Injection: From XML to SpEL