zoukankan      html  css  js  c++  java
  • 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的路径就好了

  • 相关阅读:
    es6中新增的字符串函数
    模板字符串
    jsp注释
    EL表达式(自己看的)
    在禁用cookie时操作Session
    urlEncoder和urlDecoder的作用和使用
    jsp中写java代码的方法
    通过类加载器在WEB应用中获取资源文件路径
    统计在线人数
    Mysql数据库操作简单版
  • 原文地址:https://www.cnblogs.com/nnsy/p/15780864.html
Copyright © 2011-2022 走看看