TCP 通信协议
2026/7/9 5:43:28
StringdbURL="jdbc:derby://localhost:1527/mydb;create=true";try(Connectionconnection=DriverManager.getConnection(dbURL)){System.out.println("连接 Derby 成功");...}catch(SQLExceptione){e.printStackTrace();}java.sql.SQLNonTransientConnectionException: java.net.ConnectException:连接到端口 1,527 上的服务器 localhost 时出错,消息为 Connection refused: connect。startNetworkServer.bat