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

5 lines
349 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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