SPI设计 Java SPI的作用非常简单,就是根据配置文件决定接口的实现类,典型的策略模式 我先演示一下Java SPI的使用demo,项目结构如下 public interface Car { void getBrand(); }