如何在没有扩展WsConfigurerAdapter的情况下将web.xml文件用于spring启动应用程序?

时间:2014-10-08 05:41:01

标签: spring spring-boot spring-ws

我使用spring-boot开发web服务,但我不想使用WsConfigurerAdapter来定义WSDL和所有,因为我想将我的战争部署到WAS7并且它不支持Servlet 3.0。那么我如何在我的应用程序中添加web.xml配置。

1 个答案:

答案 0 :(得分:3)

Spring Boot不支持开箱即用的Servlet 2.5,但您可以使用Spring Boot Legacy来完成工作。请查看Google App Engine sample application以获取有关如何使用Spring Boot Legacy和web.xml的示例。

您可能也对this Spring Boot issue感兴趣,它建议将Spring Boot Legacy作为Spring Boot的正式部分。