mysql> show global variables like 'wait_timeout';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wait_timeout | 28800 |
+---------------+-------+
1 row in set, 1 warning (0.06 sec)
mysql> set global WAIT_TIMEOUT=1814400;
Query OK, 0 rows affected (0.01 sec)
mysql> show global variables like 'wait_timeout';
+---------------+---------+
| Variable_name | Value |
+---------------+---------+
| wait_timeout | 1814400 |
+---------------+---------+
1 row in set, 1 warning (0.00 sec)
驱动配置修改 &useSSL=false
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.211.132:3306/changgou_content?useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
username: root
password: 123456
收工