question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

swaggerWelcome `WebFluxProperties' that could not be found

See original GitHub issue

Inheritance of ‘WebFluxConfigurationSupport’ will result in an error as shown in the picture below.

스크린샷 2021-01-30 오전 12 47 47
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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bnasslahsencommented, Feb 5, 2021

You have the SNAPSHOT repository available.

Here is how you declare repositories in gradle.

0reactions
patpatpat123commented, Feb 6, 2021

Also verified it is working. Looking forward to the non snapshot version. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found