2021-04-11 SpringBoot使用策略模式 6,199 热度 设计模式 , SpringBoot 技术交流 使用策略模式优化代码中的 if-else 与 switch-case,遵从开闭原则