Exception in thread "main" org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is 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.
mysql-connector-java这个jar包是最新的时候
在配置datasource.url时不能简单的这样配
需要加上一些必要的后缀信息(改成下面的配置就可以了): spring.datasource.url=jdbc:mysql://localhost:3306/spring5_day06?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC