启动例子程序怎么报错?

[ERROR]-[Thread: main]-[com.alibaba.druid.pool.DruidDataSource.init()]: init datasource error, url: jdbc:mysql://localhost/jfinal_demo?characterEncoding=utf8&useSSL=false&zeroDateTimeBehavior=convertToNull

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.


评论区

码通科技

2020-05-09 18:01

数据库时区不对,重新配置一下即可

子睿

2020-05-09 18:03

知道这么回事了 后面加个参数就好了

热门反馈

扫码入社