failed to parse the connection string near ';characterEncoding=utf8&useSSL=true&serverTimezo

failed to parse the connection string near ';characterEncoding=utf8&useSSL=true&serverTimezone=GMT'.

今天在写代码时莫名其妙出现错误,因为以前写另一个项目的时候&这个符号编译不出来,所以后台使用这个现在居然又错误了。

jdbc:mysql://localhost:3306/xxx?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT

改成

jdbc:mysql://127.0.0.1:3306/xxx?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT
发布了28 篇原创文章 · 获赞 7 · 访问量 8599

猜你喜欢

转载自blog.csdn.net/qq_35953966/article/details/95970769
今日推荐