Mybatis generator,Table configuration with catalog null, schema null

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Justnow_/article/details/73838490

于使用mybatis generator自动生成代码报Table configuration with catalog null, schema null异常,经昨日排查,找到了两个原因,希望能给遇到同样困扰的小伙伴一点参考

  1. 创建表时未创建索引(主键,外键,索引都没有)
  2. 表名过长,这个确实是我偶然发现的,之前我的表名大概有30个字符的长度,当我把表名缩短后问题就解决了

猜你喜欢

转载自blog.csdn.net/Justnow_/article/details/73838490