上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 线程池配置 /** * 线程池配置 */ @Configuration public class ThreadPoolConfig { /** * 核心线程 */ @Value("${threadpool.corePoolSize:10}") private int corePoolSize; /* 阅读全文
posted @ 2023-03-08 11:24 二次元的程序猿 阅读(40) 评论(0) 推荐(0) 编辑
摘要: public static Map<String, Long> sortMap(Map<String, Long> map) { List<Map.Entry<String, Long>> entryList = new ArrayList<>(map.entrySet()); entryList. 阅读全文
posted @ 2023-02-21 09:57 二次元的程序猿 阅读(46) 评论(0) 推荐(0) 编辑
摘要: public class SelectSheetWriteHandler implements SheetWriteHandler { private Map<Integer, List<String>> selectMap; private int index; private char[] al 阅读全文
posted @ 2022-12-26 15:34 二次元的程序猿 阅读(1455) 评论(0) 推荐(0) 编辑
摘要: USE information_schema; SELECT table_schema AS '数据库', table_name AS '表名', table_rows AS '记录数', TRUNCATE ( data_length / 1024 / 1024, 2 ) AS '数据容量(MB)' 阅读全文
posted @ 2022-11-29 17:38 二次元的程序猿 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.解决中文乱码 中文乱码在restTemplate的MessageConverters集合里加入StringHttpMessageConverter就可以了,代码如下 RestTemplate restTemplate =new RestTemplate(); restTemplate.getMe 阅读全文
posted @ 2022-11-18 11:31 二次元的程序猿 阅读(920) 评论(0) 推荐(0) 编辑
摘要: Period.between只能算月份(年)之内的数据 比如: 计算2022-04-16距离2022-02-17间隔的天数,那么用Period.between来计算getDays就是只有一天 计算2021-06-22距离2022-07-22间隔的月份,那么用Period.between来计算getM 阅读全文
posted @ 2022-09-15 16:07 二次元的程序猿 阅读(380) 评论(0) 推荐(0) 编辑
摘要: yaml配置文件中增加两个不同环境的配置: java配置文件,参考微信支付的代码: /** * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Slf4j @Configuration @EnableConfig 阅读全文
posted @ 2022-09-07 16:49 二次元的程序猿 阅读(456) 评论(0) 推荐(0) 编辑
摘要: docker images:查看已经安装的 docker 镜像。 docker image rm image_id:删除镜像。 docker pull:获取镜像。 docker search:从仓库查找镜像文件。 docker exec –it fID bash:进入 docker 容器内部。 do 阅读全文
posted @ 2022-08-26 11:52 二次元的程序猿 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 时间字符串作为普通请求参数传入时,转换用的是Converter 增加一个时间转换的配置类 import com.sjaco.lccloud.common.pay.kit.DateKit; import com.sjaco.lccloud.common.support.DateTimeKit; imp 阅读全文
posted @ 2022-08-23 16:11 二次元的程序猿 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 线程池的配置: @Configuration public class ExecutorConfig { @Bean(name = "myExecutor") public Executor executor() { ThreadPoolTaskExecutor executor = new Thr 阅读全文
posted @ 2022-08-16 14:39 二次元的程序猿 阅读(567) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页