Skip to content

Commit b52b4d1

Browse files
snicollphilwebb
authored andcommitted
Polish MyTaskExecutorConfiguration.kt sample code
1 parent f08d3a5 commit b52b4d1

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/taskexecutionandscheduling/multiple/MyTaskExecutorConfiguration.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MyTaskExecutorConfiguration {
3333
@Bean("taskExecutor")
3434
fun taskExecutor(): ThreadPoolTaskExecutor {
3535
val threadPoolTaskExecutor = ThreadPoolTaskExecutor()
36-
threadPoolTaskExecutor.threadNamePrefix = "async-"
36+
threadPoolTaskExecutor.setThreadNamePrefix("async-")
3737
return threadPoolTaskExecutor
3838
}
3939

0 commit comments

Comments
 (0)