Skip to content

Spring 7 @Retryable results in JDK proxy with Spring Boot #35286

@ah1508

Description

@ah1508

Hi,

With Spring boot, @Retryable annotation on methods results in JDK Proxy instead of CGLIB Proxy.

Why not, but with Spring Boot, when methods are annotated with @Cacheable, @Transactional or @PreAuthorize, it results in cglib proxy beans even if proxyTargetClass is not set to true on @Enable* annotations and even if the class implements an interface. Same behavior with @Retryable and @EnableRetry for Spring 6 projects with spring-retry

It could be the same for Spring 7 @Retryable: cglib proxy even if @EnableResilientMethods does not set proxyTargetClass to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: waiting-for-triageAn issue we've not yet triaged or decided on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions