47. Web Service

Spring Boot 提供了 Web 服务自动配置,因此您所要做的就是定义Endpoints

Spring Web Services 功能可以通过spring-boot-starter-webservices模块轻松访问。

可以分别为您的 WSDL 和 XSD 自动创建SimpleWsdl11DefinitionSimpleXsdSchema bean。为此,请配置其位置,如以下示例所示:

spring.webservices.wsdl-locations=classpath:/wsdl