applicationContext.xml种database配置戳错

applicationContext.xml配置database时出现错误

  1. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established

  2. com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@6ff9129c -- Acquisition Attempt Failed!!!

解决方法:

1. mysqlURL在高版本需要指明是否进行SSL连接,在MySQL连接字符串url中加入ssl=true或者false即可

2. URL后添加添加&serverTimezone=UTC

解决后如下所示

jdbc.url=jdbc:mysql://localhost:3306/course?characterEncoding=utf8&useSSL=true&serverTimezone=UTC

posted on 2017-06-29 17:08  theLazarus  阅读(335)  评论(0编辑  收藏  举报