摘要: 前言 在JDK的并发包里提供了几个非常有用的并发工具类。 提供并发流程控制的工具类 CountDownLatch,CyclicBarrier,Semaphore 提供了在线程间交换数据的工具类 Exchanger 等待多线程完成的CountDownLatch CountDownLatch允许一个或多 阅读全文
posted @ 2020-01-05 21:58 王大军 阅读(230) 评论(0) 推荐(0)
摘要: 用了Spring,自然要用研究和使用Spring Security. Spring Security 一句话概括:一组 filter 过滤链组成的权限验证。 一、基本原理 Spring Security的整个工作流程如图: 绿色认证方式可以配置, 橘黄色和蓝色的位置不可更改。 Security 两种 阅读全文
posted @ 2020-01-05 14:59 王大军 阅读(412) 评论(0) 推荐(0)