springboot笔记

Posted on 2021-01-29 20:34  来杯奶茶呗  阅读(113)  评论(0)    收藏  举报

1.使用了thymeleaf引擎后页面里的url地址都要走控制层代码

2.SpringBoot整合mybatis出现时区问题。

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.
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.13.jar:8.0.13]

解决方法:数据库配置的url改动一下

 url=jdbc:mysql://127.0.0.1:3306/xuanyi?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8

3.SpringBoot连接mysql时出现 CLIENT_PLUGIN_AUTH is required 解决办法

出现这个问题的原因是mysql版本和导入的依赖版本不匹配,修改一下mysql的依赖版本即可<version>5.1.49</version>