Skip to content

Declarative Restclient Interfaces not compatible with AOP in Native Mode since Spring Boot 4.0 #36001

@goafabric

Description

@goafabric

With Spring Boot 3.x, we could wrap Declarative RestClient Interfaces with Aspects / AOP.
This is especially valuable with Resilience4J + Circuitbreaker.

While in Boot 3.x this worked in JVM + Native Mode,
its not working any more in Native Mode in Boot 4.0.

Please see the minmal reproducer attach

ed, where i used my own annotation to avoid a complex setup with resilience4j.

IN JVM Mode this will put out on startup "### inside simple Circuit Breaker Aspect"

And this is not working in AOT / Native mode

Archiv.zip

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