diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt index 39458319ad..7963b74ddf 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt +++ b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt @@ -33,7 +33,7 @@ class MyTaskExecutorConfiguration { @Bean("taskExecutor") fun taskExecutor(): ThreadPoolTaskExecutor { val threadPoolTaskExecutor = ThreadPoolTaskExecutor() - threadPoolTaskExecutor.threadNamePrefix = "async-" + threadPoolTaskExecutor.setThreadNamePrefix("async-") return threadPoolTaskExecutor }