1、场景 当业务中有多个运行策略和规则时,通常会采用工厂的设计模式来降低耦合,提升代码未来的可扩展性,现在遇到这样一段逻辑: 有这样一个接口 public interface ILogicFilter{ } 它有如下实现类 @Slf4j @Component @LogicStrategy