上一页 1 2 3 4 5 6 7 ··· 17 下一页
摘要: let re =/^(\d{4})-(\d{2})-(\d{2})$/; let str = "2022-06-22"; if (re.test(str) { console.log("验证成功!") } 阅读全文
posted @ 2022-06-22 10:19 scwyfy 阅读(303) 评论(0) 推荐(0)
摘要: package com.tree; import java.util.LinkedList; import java.util.Stack; public class BSTree<T extends Comparable> { public static void main(String[] ar 阅读全文
posted @ 2022-04-22 16:34 scwyfy 阅读(31) 评论(0) 推荐(0)
摘要: package com.tree; public class TreePrinter { <T> int heightOf(BSTree.BSTNode<T> node) { if(node == null) { return 0; } return Math.max( heightOf(node. 阅读全文
posted @ 2022-04-22 15:20 scwyfy 阅读(68) 评论(0) 推荐(0)
摘要: // 设置springboot的跨域访问 @Configuration public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) 阅读全文
posted @ 2022-04-12 15:31 scwyfy 阅读(134) 评论(0) 推荐(0)
摘要: package net.jwt.utils; import io.jsonwebtoken.*; import net.jwt.domain.User; import java.util.Date; public class JwtUtil { private static final String 阅读全文
posted @ 2022-04-11 21:17 scwyfy 阅读(126) 评论(0) 推荐(0)
摘要: public class ThreadPoolTest { public static void main(String[] args) { /** * * 核心线程数量:0 * 非核心线程数量:Integer.MAX_VALUE * 队列:SynchronousQueue * * 当有大量任务时, 阅读全文
posted @ 2022-03-16 11:46 scwyfy 阅读(34) 评论(0) 推荐(0)
摘要: 1、BeanNameAware /** * spring提供的 beanName回调处理方法 * @param beanName */ void setBeanName(String beanName); 2、InitializingBean /** * 初始化检查 * */ void afterP 阅读全文
posted @ 2022-03-15 20:21 scwyfy 阅读(49) 评论(0) 推荐(0)
摘要: 1、内存调整:在redis.conf文件中,属性maxmemory未设置或者设置为0时,表示内存大小无限制。一般设置为最大物理内存的3/4大小 eg: 设置最大内存为100M: mexmemory 104857600 2、内存使用超出了最大内存:redis会报错OOM 3、info命令:查看redi 阅读全文
posted @ 2021-12-29 22:17 scwyfy 阅读(40) 评论(0) 推荐(0)
摘要: 去重集合List<<Map<String, Object>>public static List<Map<String, Object>> duplicateKey(List<Map<String, Object>> list) { if (ObjectUtil.isNotEmpty(list)) 阅读全文
posted @ 2021-07-15 10:11 scwyfy 阅读(346) 评论(0) 推荐(0)
摘要: 调优 JVM调优主要就是调整下面两个指标 停顿时间:垃圾收集器做垃圾回收中断应用执行的时间。-XX:MaxGCPauseMillis 吞吐量:垃圾收集的时间和总时间的占比:1/(1+n),吞吐量为1-1/(1+n)。-XX:GCTimeRatio=n GC调优步骤 1.打印GC日志 -XX:+Pri 阅读全文
posted @ 2021-06-18 14:43 scwyfy 阅读(174) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 17 下一页