Springboot框架搭建及整合MyBatis问题记录

项目中遇到的问题及解决方法、

Java连接MySql报错—— com.mysql.cj.exceptions.InvalidConnectionAttributeException
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.
FATAL ERROR in native method: JDWP on checking for an interface, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)

MySQL jdbc 6.0 版本以上必须配置“serverTimezone”参数
UTC代表的是全球标准时间,我们使用的时间是北京时区也就是东八区,领先UTC八个小时。url的时区使用中国标准时间。也是就serverTimezone=Asia/Shanghai

server.context-path无效Deprecated configration property

因为spring boot版本问题导致的!!现在用的比较新的版本在2.0以上!应该这么写
server.servlet.context-path=/demo

3.maven配置默认
Springboot框架搭建及整合MyBatis问题记录_第1张图片

你可能感兴趣的:(框架技术,mybatis,spring,java,mysql)