美文网首页
连接提示Could not create connection

连接提示Could not create connection

作者: lv_shun | 来源:发表于2019-01-11 11:32 被阅读0次

    想看看springboot的例子,从https://gitee.com/jeff1993/springboot-learning-example.git中当下来一个大牛的工程.
    本想改改跑起来看看,在本地加了对应数据库和表,结果启动springboot之后报错:Could not create connection to database server.
    思维严谨的我不相信会写错什么.查了几分钟,发现我本地的mysql版本是8.0.13,
    工程中pom配置的mysql-connector-java版本是5.x.x.改成对应版本就好了.不知道有没有和我一样踩到坑里的,哈哈.

    相关文章

      网友评论

          本文标题:连接提示Could not create connection

          本文链接:https://www.haomeiwen.com/subject/keatdqtx.html