# springboot_design_pattern **Repository Path**: enthusiasts/springboot_design_pattern ## Basic Information - **Project Name**: springboot_design_pattern - **Description**: 设计模式相关代码。博客地址:https://blog.csdn.net/qq_37640410 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-08-10 - **Last Updated**: 2021-06-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot_design_pattern #### 介绍 设计模式相关代码。 博客地址:https://blog.csdn.net/qq_37640410 - 策略模式:com.lee.strategy - 责任链模式:com.lee.chain - 模板方法模式:com.lee.template - 装饰着模式:com.lee.decorate - 适配器模式:com.lee.adapter **- 责任链模式数据库表结构:** - 数据库(design_pattern) - 表结构 ``` CREATE TABLE `chain_of_responsibility` ( `id` varchar(32) NOT NULL COMMENT '主键', `kind_handler` varchar(32) DEFAULT NULL COMMENT '处理器种类', `handler_id` varchar(32) DEFAULT NULL COMMENT '处理器id', `handler_name` varchar(32) DEFAULT NULL COMMENT '处理器名称', `pre_handler_id` varchar(32) DEFAULT NULL COMMENT '上一个处理器id', `next_handler_id` varchar(32) DEFAULT NULL COMMENT '下一个处理器id', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='责任链模式表'; ``` - 数据模拟 ``` INSERT INTO `chain_of_responsibility` VALUES ('aa928c3f312444b3a319dcf17b701bea', 'log','consoleLoggerHandler','标准日志输出', null, 'errorLoggerHandler'); INSERT INTO `chain_of_responsibility` VALUES ('49f06f1e45ee4a79bb5a256909241bb3', 'log','errorLoggerHandler','ERROR日志输出', 'consoleLoggerHandler', 'debugLoggerHandler'); INSERT INTO `chain_of_responsibility` VALUES ('685952c9cab647c2abad83ae1491dd7c', 'log' ,'debugLoggerHandler', 'debugger日志输出','errorLoggerHandler', null); ``` #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)