Skip to content

Commit

Permalink
Polish RefreshAutoConfiguration to reuse constants (#1443)
Browse files Browse the repository at this point in the history
Signed-off-by: Yanming Zhou <[email protected]>
  • Loading branch information
quaff authored Jan 21, 2025
1 parent 294343a commit 129d490
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public ConfigDataContextRefresher configDataContextRefresher(ConfigurableApplica
return new ConfigDataContextRefresher(context, scope, properties);
}

@ConditionalOnProperty(value = "spring.cloud.refresh.on-restart.enabled", matchIfMissing = true)
@ConditionalOnProperty(value = REFRESH_SCOPE_PREFIX + ".on-restart.enabled", matchIfMissing = true)
@Bean
RefreshScopeLifecycle refreshScopeLifecycle(ContextRefresher contextRefresher) {
return new RefreshScopeLifecycle(contextRefresher);
Expand Down

0 comments on commit 129d490

Please sign in to comment.