mysql – mybatis生成器“列名模式不能为NULL或为空”

我在eclipse中使用MyBatis Generator.这是generatorConfig.xml文件.当我右键单击并选择“生成MyBatis工件”时,它会显示错误消息,如“列名模式不能为NULL或为空”.

figuration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
figuration>
    sspathEntry
        location="C:\Users\myplace\.m2\repository\MysqL\mysql-connector-java\6.0.2\mysql-connector-java-6.0.2.jar" />
  MysqL.jdbc.Driver"
            connectionURL="jdbc:MysqL://localhost:3306/world?serverTimezone=EST"
            userId="root" password="root" />
    sqlMapGenerator targetPackage="com.example.ws.sql" targetProject="com.example.ws" />
   district" property="district" javaType = "String" />
      figuration>

你能帮帮我吗?
谢谢!

最佳答案
这是MysqL Connector从版本5.x到6.x的更改,如here所示.

为了使MyBatis能够与6.x一起使用,您可以将nullNamePatternMatchesAll = true附加到JDBC字符串中.你可能不得不逃避&到& amp;在你的XML中.

相关文章

优化MySQL数据库发布系统存储的方法有:1.mysql库主从读写分...
使用mysql的方法:在“我的电脑”→右键→“管理”→“服务”...
在mysql中查看root用户权限的方法:1.命令行启动mysql服务;...
MySQL主从复制是用来备份一个与主数据库一样环境的从数据库,...
运行mysql的方法1.启动mysql服务,在“我的电脑”→右键→“...
开启mysql的方法1.可以通过快捷键win+r,输入cmd,打开窗口,...