将spring.datasource.url后加入?serverTimezone=UTC
String url = "jdbc:mysql://localhost:3306/shcoolnews?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8";