使用 java 自带的 jax-ws 依赖 如果是jdk1.8,不需要引入任何依赖,如果大于1.8 <dependency> <groupId>javax.jws</groupId> <artifactId>javax.jws-api</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> </dependency> 定义服务接口 使用 @WebService 注解 @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) public interface HumanService { @WebMethod public boolean addHuman(Human human); @WebMethod public boolean deleteHuman(String name); @WebMethod public...