Dict.CN 在线词典, 英语学习, 在线翻译 ------------- MyGitee My腾云code

Happy_EveryDay

可以平凡 不可以平庸 无爱则无忧,无欲则无求,无怒而无敌,无怨才是佛。所有烦恼,都是放不下的执著 开源技群 328035181 MyGitee

2023年12月22日

ThreadPoolExecutor实现批量插入

摘要: 一:在run()方法里写插入 1 package com.smartdata.pms.thread; 2 3 import com.smartdata.pms.entity.PmsProduct; 4 import com.smartdata.pms.mapper.PmsProductMapper; 阅读全文

posted @ 2023-12-22 09:02 cn2025 阅读(27) 评论(0) 推荐(0)

Map+函数式接口去掉if-else

摘要: 判断条件放在key中 对应的业务逻辑放在value中 这样子写的好处是非常直观,能直接看到判断条件对应的业务逻辑 代码: import com.wing.service.QueryGrantTypeService; import org.springframework.beans.factory.a 阅读全文

posted @ 2023-12-22 08:53 cn2025 阅读(53) 评论(0) 推荐(0)

导航