# design-patterns **Repository Path**: bored_code/design-patterns ## Basic Information - **Project Name**: design-patterns - **Description**: No description available - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-08 - **Last Updated**: 2024-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 项目说明 ## 23种设计模式 # 1.单例模式 饿汉式:http://127.0.0.1:8081/singleton/eager/1000 懒汉式:http://127.0.0.1:8081/singleton/synchronized/1000 懒汉式:http://127.0.0.1:8081/singleton/DCL/1000 懒汉式:http://127.0.0.1:8081/singleton/staticInnerClass/1000 # 2.工厂方法模式 http://127.0.0.1:8081/factoryMethod/mysql http://127.0.0.1:8081/factoryMethod/oracle # 3.抽象工厂模式 http://127.0.0.1:8081/abstractFactory/anTa http://127.0.0.1:8081/abstractFactory/liNing # 4.建造者模式 http://127.0.0.1:8081/builder/user # 5.原型模式 http://127.0.0.1:8081/prototype/clone # 6.适配器模式 http://127.0.0.1:8081/adapter/login # 7.组合模式 http://127.0.0.1:8081/composite/create # 8.装饰器模式 http://127.0.0.1:8081/decorator/create # 9.代理模式 http://127.0.0.1:8081/proxy/jdkProxy/tcpRequest http://127.0.0.1:8081/proxy/jdkProxy/httpRequest http://127.0.0.1:8081/proxy/cglibProxy/tcpRequest http://127.0.0.1:8081/proxy/cglibProxy/httpRequest # 10.外观模式 http://127.0.0.1:8081/facade/execute # 11.桥接模式 http://127.0.0.1:8081/bridge/execute # 12.享元模式 http://127.0.0.1:8081/flyweight/mysql http://127.0.0.1:8081/flyweight/oracle # 13.策略模式 http://127.0.0.1:8081/strategy/execute # 14.模版方法模式 http://127.0.0.1:8081/templateMethod/execute # 15.观察者模式 http://127.0.0.1:8081/observer/update # 16.迭代器模式 http://127.0.0.1:8081/iterator/execute # 17.责任链模式 http://127.0.0.1:8081/chainOfResponsibility/execute # 18.命令模式 http://127.0.0.1:8081/command/execute # 19.备忘录模式 http://127.0.0.1:8081/memento/save http://127.0.0.1:8081/memento/redo # 20.状态模式 http://127.0.0.1:8081/state/execute # 21.访问者模式 http://127.0.0.1:8081/visitor/execute # 22.中介者模式 http://127.0.0.1:8081/mediator/execute # 23.解释器模式 http://127.0.0.1:8081/interpreter/execute