最后更新于5年前
这有帮助吗?
Spring Boot提供Web Services自动配置,你需要的就是定义Endpoints。通过添加spring-boot-starter-webservices模块可以获取。
Endpoints
spring-boot-starter-webservices
Spring Boot会自动为你的WSDL和XSD各自创建SimpleWsdl11Definition和SimpleXsdSchema bean。如下,配置它们的位置:
SimpleWsdl11Definition
SimpleXsdSchema
spring.webservices.wsdl-locations=classpath:/wsdl