mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
Fix Kotlin sample of reactive cloudfoundry configuration
See gh-46587
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ class MyReactiveCloudFoundryConfiguration {
|
||||
@Bean
|
||||
fun httpHandler(applicationContext: ApplicationContext, properties: WebFluxProperties): HttpHandler {
|
||||
val httpHandler = WebHttpHandlerBuilder.applicationContext(applicationContext).build()
|
||||
return CloudFoundryHttpHandler(properties.basePath, httpHandler)
|
||||
return CloudFoundryHttpHandler(properties.basePath ?: "/", httpHandler)
|
||||
}
|
||||
|
||||
private class CloudFoundryHttpHandler(basePath: String, private val delegate: HttpHandler) : HttpHandler {
|
||||
|
||||
Reference in New Issue
Block a user