How to avoid exception on disconnect for JDBC driver?
I use JDBC connection to Oracle database. Sometimes when I try disconnect I receive error:
Io exception Broken pipe
This is because network connection was broken. How to better handler this exception? Thanks.
But you wanted to be disconnected anyway, so where's the problem?
You could either log it with a relatively mild log level, or just swallow the exception entirely (I recommend the former)
链接地址: http://www.djcxy.com/p/61704.html上一篇: java.io.IOException:断开的管道
下一篇: 如何避免断开JDBC驱动程序的异常?