国际软件测试工程师ISTQB-FL级认证培训课程
先是项目启动类
public static void main(String[] args) {
SpringApplication.run(MarsApplication.class, args);}
初始化时,会加载META-INF/spring.factories
文件,来看一下deduceWebEnvironment()
方法
private WebApplicationType deduceWebApplicationType() {
if (ClassUtils.isPresent(REACTIVE_WEB_ENVIRONMENT_CLASS, null)
&& !ClassUtils.isPresent(MVC_WEB_ENVIRONMENT_CLASS, null)) {
return WebApplicationType.REACTIVE;