对于入门的学僧来说,还没有系统的去学一门语言,程序报错确实是 An egg painfully question.
运行项目时碰到有个错误:
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 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.
找到关键字,一番度娘,在大神博客找到https://blog.csdn.net/chinafire525/article/details/80083226找到解答,
在 jdbc:mysql://127.0.0.1:3306/mytest?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true 上加:&serverTimezone=UTC完美解决