diff --git a/IV. Spring Boot features/26.3.2. The EmbeddedWebApplicationContext.md b/IV. Spring Boot features/26.3.2. The EmbeddedWebApplicationContext.md index e69de29..e587d7b 100644 --- a/IV. Spring Boot features/26.3.2. The EmbeddedWebApplicationContext.md +++ b/IV. Spring Boot features/26.3.2. The EmbeddedWebApplicationContext.md @@ -0,0 +1,5 @@ +### 26.3.2. EmbeddedWebApplicationContext + +Spring Boot底层使用了一个新的ApplicationContext类型,用于对内嵌servlet容器的支持。EmbeddedWebApplicationContext是一个特殊类型的WebApplicationContext,它通过搜索一个单一的EmbeddedServletContainerFactory bean来启动自己。通常,TomcatEmbeddedServletContainerFactory,JettyEmbeddedServletContainerFactory或UndertowEmbeddedServletContainerFactory将被自动配置。 + +**注**:你通常不需要知道这些实现类。大多数应用将被自动配置,并根据你的行为创建合适的ApplicationContext和EmbeddedServletContainerFactory。