Tagged articles
3 articles
Page 1 of 1
macrozheng
macrozheng
Sep 8, 2025 · Backend Development

How to Refresh Spring Boot Configurations at Runtime Without Restart

This article explains why dynamic configuration refresh is needed in Spring Boot, details the @RefreshScope mechanism, provides step‑by‑step implementation code, and shares production best practices and troubleshooting tips for zero‑downtime config updates.

Backend DevelopmentCloud NativeDynamic Configuration
0 likes · 10 min read
How to Refresh Spring Boot Configurations at Runtime Without Restart
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 13, 2024 · Backend Development

How to Dynamically Update Spring Boot Properties at Runtime Without Restart

This article explains several strategies for dynamically updating Spring Boot application properties—such as using prototype‑scoped beans, @RefreshScope with Spring Cloud, external configuration files, and custom PropertySource updates—so that changes take effect without restarting the service.

PropertySourceRefreshScopeSpring Boot
0 likes · 10 min read
How to Dynamically Update Spring Boot Properties at Runtime Without Restart
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 11, 2024 · Backend Development

How to Dynamically Refresh Spring Boot Configurations at Runtime

This article explains two practical approaches for achieving real‑time external configuration refresh in Spring Boot 2.7, covering a custom ApplicationContextInitializer that periodically updates the Environment and a bean‑refresh technique using ContextRefreshedEvent to rebind @ConfigurationProperties, complete with code examples and testing endpoints.

ApplicationContextInitializerBackend DevelopmentConfiguration Refresh
0 likes · 9 min read
How to Dynamically Refresh Spring Boot Configurations at Runtime