1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update spring-design-patterns-summary.md

279行,包装器是装饰者的别名,不是适配器;应是笔误
This commit is contained in:
kuluqi163 2022-08-26 10:28:48 +08:00 committed by GitHub
parent 4b9dbce395
commit ca01f50add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ public class DemoPublisher {
## 适配器模式 ## 适配器模式
适配器模式(Adapter Pattern) 将一个接口转换成客户希望的另一个接口,适配器模式使接口不兼容的那些类可以一起工作,其别名为包装器(Wrapper) 适配器模式(Adapter Pattern) 将一个接口转换成客户希望的另一个接口,适配器模式使接口不兼容的那些类可以一起工作。
### spring AOP中的适配器模式 ### spring AOP中的适配器模式