Communications link failure The last packet successfully received from the server was 20 millisecon

运行mybatis-generator报错

详细错误:
Communications link failure
The last packet successfully received from the server was 20 millisecon

解决方法:
相关url链接加入一些参数解决,如下所示
jdbc:mysql://localhost:3500/test?useUnicode=true&characterEncoding=UTF-8&;useSSL=false&rewriteBatchedStatements=true

猜你喜欢

转载自blog.csdn.net/asd1358355022/article/details/131846677