SpringBoot使用策略模式

SpringBoot使用策略模式前言在实际业务代码中,我们经常会碰到这样的代码:String type = actualService.getRealtype(uid);if(type.equals("typeA")){ // do func A}else if(type.


设计模式

设计模式​在软件开发中,前人对软件系统的设计和开发总结了一些原则和模式, 不管用什么语言做开发,都将对我们系统设计和开发提供指导意义。