springboot如何自动启动tomcat

大纲:

  1.   确定WebApplicationType
  2.   自动加载org.springframework.boot.autoconfigure下的pring.factories,根据 EmbeddedWebServerFactoryCustomizerAutoConfiguration 的过滤ConditionalOnClass 
  3.        onRefresh() 创建webserver,start。


  

posted @ 2023-10-26 10:50  wjwei  阅读(21)  评论(0)    收藏  举报