spring_reference/IX. ‘How-to’ guides/74.2. Create a deployable w...

5 lines
349 B
Markdown
Raw Normal View History

### 74.2. 为老的servlet容器创建一个可部署的war文件
老的Servlet容器不支持在Servlet 3.0中使用的ServletContextInitializer启动处理。你仍旧可以在这些容器使用Spring和Spring Boot但你需要为应用添加一个web.xml并将它配置为通过一个DispatcherServlet加载一个ApplicationContext。