7

关于多线程访问http异常处理问题?

 2 years ago
source link: https://www.oschina.net/question/2918983_2324067
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

关于多线程访问http异常处理问题?

雪地烟斗 发布于 前天 17:12
阅读 123

现在的场景如下:

用多线程从数据库表中读取相关列数据用于访问http接口,但有的数据本身有问题,做为参数访问接口的时候会报错,这样就会导致该线程被关闭。

如何在数据库表数据错误的情况下,能够让该线程不被关闭继续访问下一条数据呢?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK