You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SpringDoc 3.0.2 HATEOAS incompatible with Spring Boot 4 (HateoasProperties missing) #3238
This happens because Spring Boot 4 removed HateoasProperties, but SpringDoc 3.0.2 still references it in SpringDocHateoasConfiguration. This makes it impossible to use SpringDoc 3.0.2 with HATEOAS on Spring Boot 4.
To Reproduce
Steps to reproduce the behavior:
Start with a Spring Boot 3 project using springdoc-openapi-starter-webmvc-ui:3.0.2 and HATEOAS enabled.
Upgrade the project to Spring Boot 4.
Run the application.
The application fails with the ClassNotFoundException for HateoasProperties.
Versions:
Spring Boot: 4.0.x
SpringDoc OpenAPI: 3.0.2
Modules: springdoc-openapi-starter-webmvc-ui with HATEOAS
Expected behavior
The application should start successfully.
HATEOAS and SpringDoc integration should work on Spring Boot 4.
OpenAPI documentation (JSON or YAML) should be generated as before.
Screenshots
N/A
Additional context
HATEOAS support is required for our project. Removing HATEOAS modules is not an option.
The error occurs during bean creation of modelConverterRegistrar → collectionModelContentConverter → hateoasHalProvider.
This is a breaking incompatibility between SpringDoc 3.x and Spring Boot 4.
Current workaround
Adding empty class org.springframework.boot.hateoas.autoconfigure.HateoasProperties manually.
side note that this is needed in addition to spring-boot-starter-hateoas. Spring Boot 4.x is more modular so you will need to adjust your dependencies when migrating.
Activity
task#1740: add placeholder workaround class for springdoc/springdoc-o…
mschout commentedon Mar 3, 2026
Hm, are you sure you have the right stuff on the classpath?
HateoasPropertiesdoes exist in Spring Boot 4.0.3.You need to have
org.springframework.boot:spring-boot-hateoas:4.0.3on the classpath.mschout commentedon Mar 3, 2026
side note that this is needed in addition to
spring-boot-starter-hateoas. Spring Boot 4.x is more modular so you will need to adjust your dependencies when migrating.bruderj15 commentedon Mar 4, 2026
Thanks for the quick response.
I can't get it working right away but certainly have just an auto-configure issue on my side.
Closes #1526 - Migrate Spring Boot 3 to 4 (#1744)