摘要: ##1、概念: SPI(Service Provider Interface)服务提供接口,简单来说就是用来解耦,实现插件的自由插拔,具体实现方案可参考JDK里的ServiceLoader(加载classpath下所有META-INF/services/目录下的对应给定接口包路径的文件,然后通过反射 阅读全文
posted @ 2021-05-07 20:27 ocean.wen 阅读(5202) 评论(0) 推荐(1) 编辑