
java -转win32/win64免安装jre环境运行
由于java 转为exe,只能在装有JDK环境的电脑运行, 发给其他人也不能运行,缺少环境,程序自己背着jre走。

Caused by: com.mysql.cj.exceptions.CJCommunicationsException: The last packet successfully
received from the server was 83,820 milliseconds ago. The last packet sent successfully to
the server was 83,822 milliseconds ago. is longer than the server configured value of
'wait_timeout'. You should consider either expiring and/or testing connection validity
before use in your application, increasing the server configured values for client
timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this
problem.
经过修改 wait timeou = 60S 以后,有新的问题 ,参考h
ttps://blog.csdn.net/lzwglory/article/details/78752563
但是这位大佬没有写清楚具体jdbc需要修改的配置是哪些,我只修改了
mysql 修改wait timeou = 60S 系统jdbcmaxWait 默认为 30S
是否以下还有修改的呢?
<property name="maxWait" value="30000" />
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property name="timeBetweenEvictionRunsMillis" value="10000" />
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property name="minEvictableIdleTimeMillis" value="30000" />