开发者社区> 问答> 正文

jsoup 抓取出错 java.io.IOException: 503 erro?报错

jsoup 抓取出错 java.io.IOException: 503 error loading URL? 400 报错 java.io.IOException: 503 error loading URL http://www.21food.cn/news/price.jsp?province=天津&market=天津市南开区红旗农贸综合批发市场
 at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:387)
 at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:364)
 at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:143)
 at org.jsoup.helper.HttpConnection.post(HttpConnection.java:138)
 at com.sundoctor.example.service.CustomerService.testMethod1(CustomerService.java:63)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)
 at frameworkx.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.execute(MethodInvokingJobDetailFactoryBean.java:555)
 at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

展开
收起
优选2 2020-06-09 15:28:52 879 0
1 条回答
写回答
取消 提交回答
  • 精于基础,广于工具,熟于业务。

    URL加载失败。试一下自己的URL是否可用

    2020-06-12 10:37:43
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
如何通过 Serverless 提高 Java 微服务治理效 立即下载
Spring Cloud Alibaba - 重新定义 Java Cloud-Native 立即下载
多IO线程优化版 立即下载