Skip to content

Upgrade starter-webmvc-ui to 2.8.16 causes startup failure for Spring Boot 3.5 apps without WebProperties/WebMvcProperties #3288

Closed

Description

@albertus82

Describe the bug

I'm using springdoc-openapi-starter-webmvc-ui in a Spring 6.2 web application. After upgrading from 2.8.14 to 2.8.16, the application fails to start due to missing beans:

  • org.springframework.boot.autoconfigure.web.WebProperties
  • org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties

I never defined or used these beans because the web application is configured without relying on Spring Boot's automatic configuration.

As a workaround, I was able to start the application by defining these beans manually:

@Bean
WebProperties webProperties() {
    return new WebProperties();
}

@Bean
WebMvcProperties webMvcProperties() {
    return new WebMvcProperties();
}

Since these beans appear to be optional, would it be possible to make them truly optional in the starter?

To Reproduce

Steps to reproduce the behavior:

  1. Use Spring Boot version 3.5.14
  2. Configure the web application without defining WebProperties or WebMvcProperties
  3. Use the module springdoc-openapi-starter-webmvc-ui version 2.8.14
  4. Verify that the application starts successfully
  5. Upgrade to 2.8.16
  6. Verify that the application no longer starts

Expected behavior

The application should start without requiring WebProperties or WebMvcProperties beans to be defined.

Additional context

This issue occurs only when configuring the web application without Spring Boot's auto-configuration.

Activity

  1. changed the title [-]Upgrade **starter-webmvc-ui** to 2.8.16 causes startup failure for Spring Boot 3.5 apps without `WebProperties`/`WebMvcProperties`[/-] [+]Upgrade starter-webmvc-ui to 2.8.16 causes startup failure for Spring Boot 3.5 apps without `WebProperties`/`WebMvcProperties`[/+] on May 13, 2026
  2. added a commit that references this issue on Jul 13, 2026
    7fc612e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions