SpringBoot入门项目CRM学习过程中的报错记录(更新ing)

  1. 在用mybatis自动生成实体类和mapper时报错..... 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   

             翻译:无法识别或表示多个时区。如果您想利用时区支持,您必须配置服务器或JDBC驱动程序(通过serverTimezone配置属性)来使用更特定的时区值

             解决方法:generatorConfig.xml文件中的URL字段添加     ?serverTimezone=GMT(指定时区)

        <!--数据库链接地址账号密码-->
        <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://127.0.0.1:3306/crm?serverTimezone=GMT"
                        userId="root" password="*****">
        </jdbcConnection>

  2.用IDEA打开数据库失败,提示需要下载驱动包,但是点下载包失败,原因是电脑上开着VPN,然后VPN重启就好了,

       3.baseMapper没有注入报错,在MapperScan中加上base的路径就好了

原文地址:https://www.cnblogs.com/nnsy/p/15780864.html