参考
https://www.cnblogs.com/zxrxzw/p/12287466.html
java.sql.SQLException: The server time zone value ‘@#S#@FDS’ 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.
项目中的时间和数据库中的时间不一致
mybatis中
<!--POOLED配置数据库连接池-->
<dataSource type="POOLED">
<property name="driver" value="com.mysql.cj.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql://localhost:3306/mybatis?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8"></property>
<property name="username" value="root"></property>
<property name="password" value="123"></property>
</dataSource>
加上&serverTimezone=GMT%2B8
即可