Spring Boot 提供了 Web 服务自动配置,因此只需定义Endpoints即可。
Endpoints
Spring Web Services 功能可以通过spring-boot-starter-webservices模块轻松访问。
spring-boot-starter-webservices