swaggerWelcome `WebFluxProperties' that could not be found
See original GitHub issueInheritance of ‘WebFluxConfigurationSupport’ will result in an error as shown in the picture below.

Parameter 3 of method swaggerWelcome in org.springdoc.webflux.ui.SwaggerConfig required a bean of type 'org.springframework.boot.autoconfigure.web.reactive.WebFluxProperties' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.boot.autoconfigure.web.reactive.WebFluxProperties' in your configuration.
This is my sample code.
@Configuration
@ConditionalOnClass(WebFluxConfigurer::class)
open class WebFluxConfiguration(
): WebFluxConfigurationSupport() {
}
@SpringBootApplication
class DemoApplication
fun main(args: Array<String>) {
runApplication<DemoApplication>(*args)
}
This is my project build.gradle.kts .
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.4.2"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
kotlin("jvm") version "1.4.21"
kotlin("plugin.spring") version "1.4.21"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_15
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springdoc:springdoc-openapi-kotlin:1.5.3")
implementation("org.springdoc:springdoc-openapi-webflux-ui:1.5.3")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "15"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
There was no problem with the previous version. I desperately want help.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
spring boot - SwaggerWelcomeCommon could not be found
It was because of conditional springdoc.use-management-port property in below class. I had set it to true, so the bean is not set.
Read more >springdoc/springdoc-openapi v1.5.4 on GitHub
... swaggerWelcome `WebFluxProperties' that could not be found. Check out latest releases or releases around springdoc/springdoc-openapi v1.5.4. Don't miss ...
Read more >springdoc-openapi-webflux-ui / - src / - main / - java / - org
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ” defined in class path resource [.xml]: No matching factory method found ...
Read more >Doing More With Springdoc-OpenAPI - DZone
In this continuation we will explore two additional Objectives namely: Rendering Fully Qualified names in the generated swagger documentation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You have the SNAPSHOT repository available.
Here is how you declare repositories in gradle.
Also verified it is working. Looking forward to the non snapshot version. Thanks!