原因是在连接数据库驱动的时区参数serverTimezone忘记配置了,所以要在url上拼接字符串serverTimezone=GMT,具体配置如下
jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ssm_mycrud?serverTimezone=GMT
原因是在连接数据库驱动的时区参数serverTimezone忘记配置了,所以要在url上拼接字符串serverTimezone=GMT,具体配置如下
jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ssm_mycrud?serverTimezone=GMT