-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Labels
Description
Description
In Spring Boot v4, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration
has moved to org.springframework.boot.jackson.autoconfigure.JacksonAutoConfiguration
.
The logbook starter uses the old fully-qualified name in LogbookAutoConfiguration.java which causes a ClassNotFoundException
at startup in a Spring Boot v4 app.
Expected Behavior
A Spring Boot v4 app should start without errors if the latest Logbook starter is added as a dependency
Actual Behavior
A Spring Boot v4 app throws a ClassNotFoundException
and fails to start when the latest Logbook starter is added as a dependency
Possible Fix
Migrate JacksonAutoConfiguration
and any other types that have changed in Spring Boot v4
Steps to Reproduce
- Download this app. Be sure to use the
logbook-spring-v4
branch - Run
./gradlew bootRun
- A
ClassNotFoundException
prevents the app from starting - Remove the logbook dependency from
build.gradle
- Run
./gradlew bootRun --refresh-dependencies
- The app should now start without any errors
Your Environment
- Version used:
org.zalando:logbook-spring-boot-starter:3.12.3
in Spring Boot 4.0.0-M3