vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
903 stars 57 forks source link

Conflict with springdocs "/swagger-ui/index.html" #2763

Open kirmorozov opened 5 days ago

kirmorozov commented 5 days ago

Describe the bug

Added Hilla to Gradle(Kotlin) config along side with

    implementation(platform("org.springdoc:springdoc-openapi:2.6.0"))
    implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui")
    implementation("org.springdoc:springdoc-openapi-starter-webflux-ui")

Expected-behavior

I still can access /swagger-ui.html

Reproduction

For fresh project spring boot Java, (Gradle kotlin build), Add swagger ui

    implementation(platform("org.springdoc:springdoc-openapi:2.6.0"))
    implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui")
    implementation("org.springdoc:springdoc-openapi-starter-webflux-ui")

Add Hilla. /swagger-ui/index.html will be out of reach.

System Info

Mac, linux

Artur- commented 5 days ago

You can add vaadin.excludeUrls=/swagger-ui/** so ensure Vaadin/Hilla does not handle that URL

Artur- commented 5 days ago

See https://vaadin.com/docs/latest/flow/integrations/spring/configuration#prevent-handling-of-specific-urls