修改数据库配置信息:
<property name="url" value="jdbc:mysql://localhost:3306/mybatisdb?useSSL=false&serverTimezone=Asia/Shanghai
&zeroDateTimeBehavior=CONVERT_TO_NULL
&useUnicode=true&characterEncoding=UTF-8"/>
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure