我也有服务@GetMapping("/partitions/{id}")public List findAll(@PathVariable long id){ return partitionsService.findAll(id);} 当我使用浏览器调用它并返回日期列表时,它可以工作。http://localhost:8181/partitions/3 为什么不起...
我的privider配置如下 项目目录结构 测试代码:访问的接口是 返回的信息是 HTTP/1.1 415 Unsupported Media Type [Server:Apache-Coyote/1.1,Content-Type:text/html;charset=utf-8,Content-Length:1051,Date:Thu,11 Jun 2015 07:32:37 GMT...
我使用Jersey REST客户端调用REST Web服务,代码示意如下:作者chszs,转载需注明。博客主页:http://blog.csdn.net/chszs [java]view plaincopyprint?TrustManager[]trustAllCerts=new TrustManager[]{ new X509TrustManager(){ public X...