mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 20:59:07 +00:00
Polish DynamicPropertyRegistrar documentation
This commit is contained in:
+2
-2
@@ -162,7 +162,7 @@ Java::
|
||||
}
|
||||
|
||||
@Bean
|
||||
DynamicPropertyRegistrar apiServerProperties(ApiServer apiServer) {
|
||||
DynamicPropertyRegistrar apiPropertiesRegistrar(ApiServer apiServer) {
|
||||
return registry -> registry.add("api.url", apiServer::getUrl);
|
||||
}
|
||||
}
|
||||
@@ -181,7 +181,7 @@ Kotlin::
|
||||
}
|
||||
|
||||
@Bean
|
||||
fun apiServerProperties(apiServer: ApiServer): DynamicPropertyRegistrar {
|
||||
fun apiPropertiesRegistrar(apiServer: ApiServer): DynamicPropertyRegistrar {
|
||||
return registry -> registry.add("api.url", apiServer::getUrl)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user