今天在用mybatis做练习时,遇到Cloud not create connection to database server报错,我用的是mysql数据库,查了一下配置文件中的驱动和URL都没问题,后来上网查了一下,原来是mysql-connection-Java的jar包版本与所用mysql的版本不一致,我用的是mysql8.0,而jar包是5.xx的,实在是个大坑。好在用的是maven管理,修改一下jar的版本号就自动帮你下载了
Cloud not create connection to database server
最新推荐文章于 2024-03-27 14:40:28 发布