跳到主要内容

AsyncConfig

线程池配置

配置项类型默认值说明
core-pool-sizeInteger1核心线程数
max-pool-sizeInteger1最大线程数
queue-lengthInteger200等待队列长度
keep-alive-secondsInteger20超过队列长度的存活时间(秒)
thread-name-prefixStringcustomThread-线程名称前缀(需控制长度,15字符内为佳,否则log打印不全)