Spring中用到的开发模式

https://blog.csdn.net/qq_40629521/article/details/104136917

Spring中的Template模式 + CallBack模式

单例

工厂模式

适配器模式:dispatchServelet根据请求调用HandlerMapping, 解析到对应的controller, controller作为对应的类,这样就不需要写代码去自行判断.

你可能感兴趣的:(Spring中用到的开发模式)