
web开发
文章平均质量分 79
hooyang
这个作者很懒,什么都没留下…
展开
-
使用Endpoint(端点)类发布webservice
1.在要发布服务的类上添加@WebService注解。将要发布服务的方法设置为public。2.调用EndPoint.publish(,)发布服务注意事项:1.给类添加上@WebService注解后,类中所有的非静态方法都将会对外公布。2.不支持静态方法,final方法。3.如果希望某个方法(非static,非final)不对外公开,可以在方法上添加@WebMethod(exclude...原创 2019-07-24 18:02:48 · 4706 阅读 · 0 评论 -
Http请求的三种方法:Apache HttpClient、Netty HttpClient、Spring RestTemplate(忽略https安全证书)
三种Http请求的实现1、Apache --> http client2、Netty --> http client3、Spring --> RestTemplate(忽略https安全证书)一、Apache --》http clientimport org.apache.http.NameValuePair;import org.apache.h...原创 2019-07-24 18:18:44 · 5583 阅读 · 0 评论