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