springboot对接tomcat
springboot对接tomcat
调用的地方在 ServletWebServerApplicationContext 里.
创建 webServer
getWebServer:166, TomcatServletWebServerFactory (org.springframework.boot.web.embedded.tomcat)
createWebServer:181, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
onRefresh:154, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
refresh:543, AbstractApplicationContext (org.springframework.context.support)
refresh:142, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
refresh:775, SpringApplication (org.springframework.boot)
refreshContext:397, SpringApplication (org.springframework.boot)
run:316, SpringApplication (org.springframework.boot)
main:16, ConditionalApplication (spring.study.conditional)
EmbeddedTomcat
1 |
|
TomcatServletWebServerFactory
调用 tomcat 的 api,组装 tomcat.
1 |
|
启动 webServer
startWebServer:309, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
finishRefresh:164, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
refresh:552, AbstractApplicationContext (org.springframework.context.support)
refresh:142, ServletWebServerApplicationContext (org.springframework.boot.web.servlet.context)
refresh:775, SpringApplication (org.springframework.boot)
refreshContext:397, SpringApplication (org.springframework.boot)
run:316, SpringApplication (org.springframework.boot)
main:16, ConditionalApplication (spring.study.conditional)