1、报错截图:
2、报错分析:
java.net.ConnectException, 看源码类的注释,说的很清楚,典型情况就是:没有进程侦听指定的远端 地址/port。而log也说得很清楚:Connection refused。
connect a socket to a remote address and port
/**
* Signals that an error occurred while attempting to connect a
* socket to a remote address and port. Typically, the connection
* was refused remotely (e.g., no process is listening on the
* remote address/port).
*
* @since JDK1.1
*/