定位太快消费的问题
This commit is contained in:
@@ -74,7 +74,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
|||||||
@Resource(name = "threadPoolTaskExecutor")
|
@Resource(name = "threadPoolTaskExecutor")
|
||||||
private ThreadPoolTaskExecutor executor;
|
private ThreadPoolTaskExecutor executor;
|
||||||
@Value("${batch.threadNum}")
|
@Value("${batch.threadNum}")
|
||||||
int threadNum ;
|
int threadNum =2;
|
||||||
|
|
||||||
private Semaphore semaphore = new Semaphore(threadNum); // 限制并发数
|
private Semaphore semaphore = new Semaphore(threadNum); // 限制并发数
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user