本指南将引导您完成使用Spring创建基于SOAP的Web服务的过程,这个服务将公开公开来自不同欧洲国家的数据,供你查询。
为了简化示例,您将通过硬编码编写英国、西班牙和波兰的数据。
我利用业余时间,翻译了Spring官网的例子,方便中文不好的同学,将陆续发到头条上,欢迎大家关注,也可以上我个人BLOG:itmanclub.com,上面有已经翻译过的。
![47adb2c92f58305a29e6114b860d3434.png](https://img-blog.csdnimg.cn/img_convert/47adb2c92f58305a29e6114b860d3434.png)
程序结构
└── src └── main └── java └── hello
pom.xml文件
<?xml version="1.0" encoding="UTF-8"?>4.0.0org.springframework gs-producting-web-service 0.1.0org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASEorg.springframework.boot spring-boot-starter-web 1.8org.springframework.boot spring-boot-maven-plugin
Spring Boot将会你做如下的事:
- 将classpath里面所有用到的jar包构建