解决方法
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.
即在配置连接数据库的URL后面加上?serverTimezone=UTC如下:
jdbc:mysql://localhost:3306/teachsystem?serverTimezone=UTC