Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Let Spring Boot consistently switch to CGLIB proxies for any proxy processor (including @Retryable, @Async etc.) #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

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions