摘要:
package com.example.cor.chain; import com.example.cor.filter.Filter; import javax.servlet.Servlet; import javax.servlet.ServletException; import javax 阅读全文
摘要:
package com.example.principle.ocp; public class ApiInfo { private String api; private long requestCount; private long errorCount; private long duratio 阅读全文
摘要:
package com.itheima.threadpool; import java.io.*; import java.net.Socket; public class ClientDemo { public static void main(String[] args) throws IOEx 阅读全文
摘要:
package com.example.util; import com.alibaba.fastjson.JSON; import com.example.commom.PO; import com.example.commom.VO; import org.springframework.bea 阅读全文
摘要:
@Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) @Documented public @interface RequestInitial { Class<?>[] groups() 阅读全文
摘要:
计数器 package com.itheima.limit; import java.util.concurrent.*; public class Counter { public static void main(String[] args) { //计数器,这里用信号量实现 final Sem 阅读全文
摘要:
先来先淘汰(FIFO) package com.itheima.release; import java.util.Iterator; import java.util.LinkedList; public class FIFO { LinkedList<Integer> fifo = new Li 阅读全文