In general, design patterns fall into three broad categories

Creative patterns: Factory, Abstract Factory, singleton, Builder, Prototype

Structural mode: adapter mode, filter mode, decoration mode, share mode, proxy mode, appearance mode, combination mode, bridge mode

** Behavior patterns: ** chain of responsibility, command, Mediator, Observer, state, Policy, template, empty object, memo, iterator, interpreter, visitor

Several commonly used design patterns — Singleton pattern — Hanko’s article — Zhihu

Hanko: Several common design patterns — singleton patterns

zhuanlan.zhihu.com] (zhuanlan.zhihu.com/p/248225977)

Two, several commonly used design patterns — Factory Pattern — Hanko’s article — Zhihu

Hanko: Several common design patterns — factory patterns

zhuanlan.zhihu.com] (zhuanlan.zhihu.com/p/248497545)

Three, several commonly used design patterns – adapter pattern – Hanko’s article – Zhihu

Hanko: Several common design patterns — adapter patterns

zhuanlan.zhihu.com] (zhuanlan.zhihu.com/p/248560820)

Four, several commonly used design patterns — Decoration pattern — Hanko’s article — Zhihu

Hanko: Several common design patterns — decorative patterns

zhuanlan.zhihu.com] (zhuanlan.zhihu.com/p/248601185)

Five, several commonly used design patterns — Strategy pattern — Hanko’s article — Zhihu

Hanko: Several common design patterns — strategic patterns

zhuanlan.zhihu.com] (zhuanlan.zhihu.com/p/248698556)

Six, several commonly used design patterns — Agent pattern — Hanko’s article — Zhihu

Hanko: Several common design patterns — the proxy pattern

zhuanlan.zhihu.com] (zhuanlan.zhihu.com/p/248828699)

Two, a comparison of several commonly used design patterns

Similarities, differences, and usage scenarios of adapter, decorator, and proxy patterns.

The source code:

[hanko/design-pattern​

gitee.com

] (link.zhihu.com/?target=htt…).

This article is good enough for a collection

Some common Design patterns in Java _LiuWang -CSDN blog

blog.csdn.net] (Link.zhihu.com/?target=htt…

c.biancheng.net] (Link.zhihu.com/?target=htt…)