随笔分类 -  六.设计模式

常用的设计模式
摘要:参考资料:设计模式简介还有J2EE的设计模式:https://www.runoob.com/design-pattern/design-pattern-tutorial.html 概述原则特别全:http://c.biancheng.net/view/1317.html 设计模式是什么 定义: 设计 阅读全文
posted @ 2020-09-23 11:18 Smileing 阅读(127) 评论(0) 推荐(0)
摘要:参考链接:三种模式的代码和UML图:https://www.cnblogs.com/yssjun/p/11102162.html、 优缺点,应用场景:https://www.runoob.com/design-pattern/factory-pattern.html 工厂模式是什么? 工厂顾名思义就 阅读全文
posted @ 2020-09-23 08:06 Smileing 阅读(86) 评论(0) 推荐(0)
摘要:参考资料:https://blog.csdn.net/weixin_38003389/article/details/88017747 https://www.runoob.com/design-pattern/proxy-pattern.html 一、什么是代理模式 1.1 代理模式的定义:代理模 阅读全文
posted @ 2020-05-25 21:01 Smileing 阅读(173) 评论(0) 推荐(0)
摘要:知识来源:http://how2j.cn/k/class-object/class-object-singleton/349.html#nowhere 一、什么是单例模式 单例模式又叫做 Singleton模式,指的是一个类,在一个JVM里,只有一个实例存在。 顾名思义,单例模式就是独一无二的意思。 阅读全文
posted @ 2019-05-08 21:57 Smileing 阅读(307) 评论(0) 推荐(0)