通过SpringApplication的类加载器获取
System.out.println(SpringApplication.class.getClassLoader().getResource("META-INF/spring.factories"));
输出:
jar:file:/D:/maven/org/springframework/boot/spring-boot/2.2.0.RELEASE/spring-boot-2.2.0.RELEASE.jar!/META-INF/spring.factories