多线程
qq_41315539
这个作者很懒,什么都没留下…
展开
-
多线程批量插入数据库
背景目前有12万数据需要打入到mysql数据库准备开发环境 :Java、JdbcTemplate、ThreadPoolTaskExecutor(线程池)数据库:MySql代码:1、配置线程池import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.schedu原创 2021-09-30 11:05:20 · 4331 阅读 · 4 评论 -
springboot多线程读取百万级数据写入文件
1、springboot 配置线程池package com.toycloud.awaken.platform.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.scheduling.annotation.EnableAsync;import org.spr原创 2020-08-08 21:07:51 · 4968 阅读 · 3 评论