07 2022 档案

摘要:public static String getDiffDateStr(Date startTime,Date endTime){ long diff = endTime.getTime() - startTime.getTime(); long diffSeconds = diff / 1000 阅读全文
posted @ 2022-07-27 16:24 生生灯火半杯月 阅读(23) 评论(0) 推荐(0) 编辑
摘要:一、配置 @Configuration @EnableAsync //启用异步任务 public class ThreadPoolConfig { @Bean("taskExecutor") public ThreadPoolTaskExecutor executor(){ ThreadPoolTa 阅读全文
posted @ 2022-07-14 16:24 生生灯火半杯月 阅读(314) 评论(0) 推荐(0) 编辑
摘要:@RunWith(SpringRunner.class) @SpringBootTest(classes = com.aa.Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public cl 阅读全文
posted @ 2022-07-14 15:18 生生灯火半杯月 阅读(60) 评论(0) 推荐(0) 编辑
摘要:文档地址:https://gitee.com/leshalv/screw <dependency> <groupId>cn.smallbun.screw</groupId> <artifactId>screw-core</artifactId> <version>1.0.5</version> </ 阅读全文
posted @ 2022-07-12 14:06 生生灯火半杯月 阅读(157) 评论(0) 推荐(0) 编辑
摘要:原因:默认分配的内存太小了 解决方式:更改idea(64).exe.vmoptions配置 D:\ADBSpace\ProgramFiles\ideaIU-2021.2.win\bin 默认配置 -Xmx750m -XX:ReservedCodeCacheSize=512m -Xms128m -XX 阅读全文
posted @ 2022-07-11 09:22 生生灯火半杯月 阅读(304) 评论(0) 推荐(0) 编辑
摘要:WebSocketConfig.java /** * WebSocket配置类 * @author admin */ @Configuration public class WebSocketConfig { /** * 注入一个ServerEndpointExporter,该Bean会自动注册使用 阅读全文
posted @ 2022-07-10 22:10 生生灯火半杯月 阅读(55) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示