问答详情
源自:1-6 生成表结构

Caused by: java.net.ConnectException: 拒绝连接 这是什么原因?

Caused by: java.net.ConnectException: 拒绝连接 这是什么原因?

提问者:qq_Mat_0 2016-04-26 19:44

个回答

  • qq_Mat_0
    2016-04-26 20:18:29

    Communications link failure

    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

    Caused by: java.net.ConnectException: 拒绝连接

    原因是:如果这次connect用时0ms,应该是hibernate.cfg.xml某个地方写错了,多检查connection.url这项。我真的是弱智