mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish
This commit is contained in:
parent
b0615dd311
commit
39f6b85039
@ -50,7 +50,7 @@ class TaskExecutorConfigurations {
|
||||
ObjectProvider<TaskDecorator> taskDecorator) {
|
||||
SimpleAsyncTaskExecutor executor = new SimpleAsyncTaskExecutor(properties.getThreadNamePrefix());
|
||||
executor.setVirtualThreads(true);
|
||||
executor.setTaskDecorator(taskDecorator.getIfUnique());
|
||||
taskDecorator.ifUnique(executor::setTaskDecorator);
|
||||
return executor;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user