對於入門的學僧來講,尚未系統的去學一門語言,程序報錯確實是 An egg painfully question.java
運行項目時碰到有個錯誤:mysql
2018-11-04 16:06:35.841 ERROR 8660 --- [reate-352468633] com.alibaba.druid.pool.DruidDataSource : create connection error, url: jdbc:mysql://127.0.0.1:3306/mytest?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true, errorCode 0, state 01S00sql
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.ui
找到關鍵字,一番度娘,在大神博客找到https://blog.csdn.net/chinafire525/article/details/80083226找到解答,url
在 jdbc:mysql://127.0.0.1:3306/mytest?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true 上加:&serverTimezone=UTC完美解決spa