登录时会出现如下错误:
springrain 2016-08-25 17:27:43,738 ERROR [Druid-ConnectionPool-Create-533621243] com.alibaba.druid.pool.DruidDataSource:2004 - create connection error, url: jdbc:mysql://127.0.0.1:3306/springrain?characterEncoding=UTF-8&useUnicode=true, errorCode 0, state 01S00
java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
在db.property url配置后加上&serverTimezone=UTC 后登录会报以下错误,但可以正常登录
springrain 2016-08-25 17:20:40,509 WARN [qtp568221876-18] com.alibaba.druid.pool.vendor.MySqlValidConnectionChecker:53 - Cannot resolve com.mysq.jdbc.Connection.ping method. Will use 'SELECT 1' instead.
java.lang.NullPointerException: null
at com.alibaba.druid.pool.vendor.MySqlValidConnectionChecker.(MySqlValidConnectionChecker.java:48)
at com.alibaba.druid.pool.DruidDataSource.initValidConnectionChecker(DruidDataSource.java:945)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:660)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:991)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:987)
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:103)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at
换成5.1.29版本是正常的