因为第二次调用数据库时连接关闭了,应该把connection.connect();放在请求的函数里面;不然第二次请求出错 转载于:https://www.cnblogs.com/weiyiyong/p/7400597.html