Skip to content

Auto-configure a sensible TaskExecutor #1563

Closed
@BigMichi1

Description

@BigMichi1

it would be really nice if spring-boot has an auto-configuration for the AsyncTaskExecutor. So if an @EnableAsync is found a AsyncTaskExecutor bean is provided based on the environment. If there is support for jsr236 (e.g. wildfly) the DefaultManagedTaskExecutor is used by looking in jndi and when not a ThreadPoolTaskExecutor or a SimpleAsyncTaskExecutor is used.

Perhaps this can be combined with the @EnableScheduling configuration

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions