Java 之 23 种设计模式解析 目录:(点击进入相应页面) 概述、六大原则 一、创建模式 0、简单工厂模式 1.工厂方法模式(Factory Method) 2、抽象工厂模式 3、单例模式(Singleton) 4、建造者模式(Builder) 5、原型模式(Prototype) 二、结构模式(7种) 6、适配器模式 7、装饰模式(Decorator) 8、代理模式(Proxy) 9、外观模式(Facade) 10、桥接模式(Bridge) 11、组合模式(Composite) 12、享元模式(Flyweight) 三、关系模式(11种) 13、策略模式(strategy) 14、模板方法模式(Template Method) 15、观察者模式(Observer) 16、迭代子模式(Iterator) 17、责任链模式(Chain of Responsibility) 18、命令模式(Command) 19、备忘录模式(Memento 20、状态模式(State) 21、访问者模式(Visitor) 22、中介者模式(Mediator) 23、解释器模式(Interpreter)