Skip to content

Spring Boot Starter is incompatible with Spring Boot v4 #2177

@donalmurtagh

Description

@donalmurtagh

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

  1. Download this app. Be sure to use the logbook-spring-v4 branch
  2. Run ./gradlew bootRun
  3. A ClassNotFoundException prevents the app from starting
  4. Remove the logbook dependency from build.gradle
  5. Run ./gradlew bootRun --refresh-dependencies
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions