摘要: 其实就是别人提供了一个类,读取指定目录下的文件,通过反射方式创建对象。 为什么来说spi?因为spring boot就是通过spi来创建对象的。 首先写一个接口: public interface TestInterface { void test(); } 写几个实现类: public class 阅读全文
posted @ 2020-02-05 14:31 SunSAS 阅读(240) 评论(0) 推荐(0) 编辑