Springboot整合mybatis注意事项
整合mybatis注意事项
当进行注入时,常见问题:当出现第二张图片的问题时,我们可以在自己的Mapper类的接口里面加上@Repository这个注解 ,注入的下划线就可以消失
Failed to obtain JDBC Connection; nested exception is 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.
当我们出现这个问题的时候,大多数是自己的配置文件链接数据库的时候时间的问题,解决方法请看下面图片.
希望我的小小努力能够帮到你 笔芯