摘要: 拦截器模式,是用巧妙的递归实现拦截功能的。 类图结构如: 代码实现: 接口:interceptor: import java.util.List;public interface Interceptor { public List<String> interceptor(TargetIntercep 阅读全文
posted @ 2021-09-02 07:46 金拽根 阅读(309) 评论(0) 推荐(0)
摘要: 工作久了,也是时候回头看一下。SOLID分别代表了五种设计原则,用SOLID来记忆会比较方便,本身意思是“稳定的”。 S Single Responsibility Principle(SRP)单一职责原则 O Open Close Principle (OCP) 开闭原则 L Liskov Sub 阅读全文
posted @ 2021-08-26 15:16 金拽根 阅读(54) 评论(0) 推荐(0)