您的位置:首页 > 其它

Mybatis逆向工程(填坑)

2017-09-25 11:20 405 查看

在MyBatis逆向工程的过程中出现错误:

Mon Sep 25 11:22:05 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.


无需理会首先刷新工程查看是否已经生成逆向文件.(发现生成文件基本已经可用,这个问题可以忽略)

已踩之坑:

'''未刷新工程。在报上述错后直接搜索解决方案''':在jdbc:mysql://localhost:3306/oneday后加?useSSL=false
'''又直接逆向生成了一遍文件''',导致spring测试时出错


总结

不要运行两次逆向生成,即使报错文件也已经在你的工程中,先删除生成的文件在解决问题,之后重新生成
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: