springboot整合其他框架遇到的一些问题

Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone...
其实这个不是spring boot + mybatis的问题, 其实是为了使MySQL JDBC驱动程序的5.1.33版本与UTC时区配合使用,必须在连接字符串中明确指定serverTimezone。
jdbc:mysql://localhost:3306/lovewhf?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC;
useJDBCCompliantTimezoneShift=true请设置这个;

Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid b

原因是:在编译的时候把mapper文件给漏掉了
请加上这个:



src/main/java

/.properties
/.xml

false


你可能感兴趣的:(springboot整合其他框架遇到的一些问题)