关于Timer定时器出现异常时,整个定时任务就中断了。

问题仍是很简单,很基础的java 针对定时任务必定要try catch 并且最好在最外层再try catch Exception,这样某次的定时任务即便出现异常,也会本身消化掉,不会影响下一次的执行。json 错误就是因为没写下面红色部分:post           public void run() {         try { String postRequestJson
相关文章
相关标签/搜索