Polish `MyTaskExecutorConfiguration.kt` sample code
This commit is contained in:
parent
f08d3a5ed0
commit
b52b4d1b9a
|
@ -33,7 +33,7 @@ class MyTaskExecutorConfiguration {
|
||||||
@Bean("taskExecutor")
|
@Bean("taskExecutor")
|
||||||
fun taskExecutor(): ThreadPoolTaskExecutor {
|
fun taskExecutor(): ThreadPoolTaskExecutor {
|
||||||
val threadPoolTaskExecutor = ThreadPoolTaskExecutor()
|
val threadPoolTaskExecutor = ThreadPoolTaskExecutor()
|
||||||
threadPoolTaskExecutor.threadNamePrefix = "async-"
|
threadPoolTaskExecutor.setThreadNamePrefix("async-")
|
||||||
return threadPoolTaskExecutor
|
return threadPoolTaskExecutor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue