07 2022 档案
摘要:public static String getDiffDateStr(Date startTime,Date endTime){ long diff = endTime.getTime() - startTime.getTime(); long diffSeconds = diff / 1000
阅读全文
摘要:一、配置 @Configuration @EnableAsync //启用异步任务 public class ThreadPoolConfig { @Bean("taskExecutor") public ThreadPoolTaskExecutor executor(){ ThreadPoolTa
阅读全文
摘要:@RunWith(SpringRunner.class) @SpringBootTest(classes = com.aa.Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public cl
阅读全文
摘要:文档地址:https://gitee.com/leshalv/screw <dependency> <groupId>cn.smallbun.screw</groupId> <artifactId>screw-core</artifactId> <version>1.0.5</version> </
阅读全文
摘要:原因:默认分配的内存太小了 解决方式:更改idea(64).exe.vmoptions配置 D:\ADBSpace\ProgramFiles\ideaIU-2021.2.win\bin 默认配置 -Xmx750m -XX:ReservedCodeCacheSize=512m -Xms128m -XX
阅读全文
摘要:WebSocketConfig.java /** * WebSocket配置类 * @author admin */ @Configuration public class WebSocketConfig { /** * 注入一个ServerEndpointExporter,该Bean会自动注册使用
阅读全文