Polish RefreshAutoConfiguration to reuse constants (#1443)
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Ryan Baxter
parent
d9a0bf923e
commit
375bc032e4
@@ -119,7 +119,7 @@ public class RefreshAutoConfiguration {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user