Skip to content

wfaithfull/spring-async-type-erasure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-async-type-erasure

This is a demonstration of the problem I describe here.

There is a solution! When using @EnableAsync with generic bean qualification, you need to enable CGLib proxying. This means that the type information is retained when the class is transformed into an Async proxy in the back end.

Solution

@EnableAsync(proxyTargetClass=true)

About

Demonstration of a type erasure problem in Spring 4.1.6.RELEASE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages