简单问题集合
- java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time
原因:数据库和系统时区差异所造成的
解决:加url后加serverTimezone=GMT%2B8,如spring.datasource.url=jdbc:mysql://localhost:3306/aicompetition?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8