Column name pattern can not be NULL or empty

来源:互联网 发布:中科院自动化所 知乎 编辑:程序博客网 时间:2024/06/07 16:15

使用Mybatis-generator时出现以下错误:

 Column name pattern can not be NULL or empty

错误产生的原因是因为使用了高版本的mysql驱动,当然你可以使用较低版本的mysql驱动,网上很多解决方案也是这样的。

这里介绍根本的解决方案:

 connectionURL="jdbc:mysql://localhost:3306/shop?useSSL=false&nullNamePatternMatchesAll=true"

后面的”&amp”其实是&,因为在xml中不允许直接使用&

我的个人博客地址www.ixiongyu.com

4 0
原创粉丝点击