Browse Source

Merge branch 'dev' of chenweida/patient-co-management into dev

chenweida 7 years ago
parent
commit
57ed077f46

+ 2 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/config/async/AsyncConfig.java

@ -9,7 +9,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.Executor;
/**
 * Created by Administrator on 2016.10.18.
 * Created by chenweida on 2016.10.18.
 * 启用多綫程
 */
@Configuration
@ -21,6 +21,7 @@ public class AsyncConfig {
    private int corePoolSize = 5;
    /**
     * 如果池中的线程数=maximumPoolSize,则有空闲线程使用空闲线程,否则新任务放入queueCapacity.
     * 设定 比 系统native thread个数要大的话,会优先抛出Java.lang.OutOfMemoryError: unable to create new native thread
     */
    private int maxPoolSize = 10;
    /**