Tagged articles
3 articles
Page 1 of 1
Cognitive Technology Team
Cognitive Technology Team
Sep 27, 2025 · Backend Development

Why @RefreshScope Returns Stale Data After Refresh and 4 Reliable Fixes

This article explains why Spring Cloud @RefreshScope beans may still return old configuration values after a /actuator/refresh call, analyzes the underlying proxy mechanism, and presents four practical solutions—including ObjectProvider and @ConfigurationProperties—along with pitfalls, validation steps, and performance comparisons.

@RefreshScopeNacosobjectprovider
0 likes · 7 min read
Why @RefreshScope Returns Stale Data After Refresh and 4 Reliable Fixes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 21, 2023 · Backend Development

Mastering Spring’s ObjectProvider: Flexible Dependency Injection Techniques

Spring’s ObjectProvider interface enhances dependency injection by allowing optional, lazy, and multiple bean retrieval, offering methods like getIfAvailable, orderedStream, and stream, with code examples demonstrating on-demand injection, fetching all implementations, and the underlying mechanism via DependencyObjectProvider in the DefaultListableBeanFactory.

dependency-injectionjavaobjectprovider
0 likes · 8 min read
Mastering Spring’s ObjectProvider: Flexible Dependency Injection Techniques