Skip to content

@Autowired does not pick up <task:executor ... /> [SPR-7403] #12061

@spring-projects-issues

Description

@spring-projects-issues

Iwein Fuld opened SPR-7403 and commented

When using

@Autowired
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor;

inside a test it doesn't pick up a bean created by <task:executor ... /> which is documented to create a bean of that particular type. I've reproduced this in a simple test project that you can find in my git repository: https://github.com/iwein/Spring-Integration-Sandbox/commit/52f039a7cd118fcc48060318f5a48ae1373a66ee


Affects: 3.0.3

Referenced from: commits 3e0003a

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions