姬長信(Redy)

777UUU888

# 不自动连接数据库 今天使用java程序/uff0c发现当程序空置久了/uff0c就会爆出数据库连接错误 发现在连接数据库字符串中 jdbc:mysql://ip:3306/xxx?autoReconnect=true&useUnicode=true&characterEncoding=gbk&serverTimezone=GMT%2B8 ![](https://cocosbcx.oss-cn-beijing.aliyuncs.com/article/67987715681167784336.png) 加入autoReconnect=true/uff0c就可以自动连接了。d水电费 水电费 水电费 对方 水电费 chcen xxxx ![](https://cocosbcx.oss-cn-beijing.aliyuncs.com/article/67987715681167782074.png) 水电费 发 第三方 第三方 对方 水电费 ## 123 ![](https://cocosbcx.oss-cn-beijing.aliyuncs.com/article/6798771568116779737.png) ## 123 ![](https://cocosbcx.oss-cn-beijing.aliyuncs.com/article/67987715681167796992.png) ### 123 ![](https://cocosbcx.oss-cn-beijing.aliyuncs.com/article/67987715681167793949.png) ## 456 ![](https://cocosbcx.oss-cn-beijing.aliyuncs.com/article/67987715681167798011.png)