-
-
Notifications
You must be signed in to change notification settings - Fork 548
Open
Description
Spring Boot 4.0.0-M3 now uses Jackson 3. At startup (using springdoc-openapi v3.0.0-M1), when registering the HAL module, it fails with the following exception:
Caused by: java.lang.NoClassDefFoundError: org/springframework/hateoas/mediatype/hal/Jackson2HalModule
at org.springdoc.core.configuration.SpringDocHateoasConfiguration.hateoasHalProvider(SpringDocHateoasConfiguration.java:78)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:155)
... 57 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.hateoas.mediatype.hal.Jackson2HalModule
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
... 61 common frames omitted
The HAL module should be replaced with https://github.com/spring-projects/spring-hateoas/blob/main/src/main/java/org/springframework/hateoas/mediatype/hal/HalJacksonModule.java
wolframhaussigdaodao-bot
Metadata
Metadata
Assignees
Labels
No labels