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:
- Use Spring Boot version 3.5.14
- Configure the web application without defining
WebProperties or WebMvcProperties
- Use the module
springdoc-openapi-starter-webmvc-ui version 2.8.14
- Verify that the application starts successfully
- Upgrade to 2.8.16
- 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.
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.WebPropertiesorg.springframework.boot.autoconfigure.web.servlet.WebMvcPropertiesI 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:
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:
WebPropertiesorWebMvcPropertiesspringdoc-openapi-starter-webmvc-uiversion 2.8.14Expected behavior
The application should start without requiring
WebPropertiesorWebMvcPropertiesbeans to be defined.Additional context
This issue occurs only when configuring the web application without Spring Boot's auto-configuration.