1. 程式人生 > >Mybatis generator,Table configuration with catalog null, schema null

Mybatis generator,Table configuration with catalog null, schema null

於使用mybatis generator自動生成程式碼報Table configuration with catalog null, schema null異常,經昨日排查,找到了兩個原因,希望能給遇到同樣困擾的小夥伴一點參考

  1. 建立表時未建立索引(主鍵,外來鍵,索引都沒有)
  2. 表名過長,這個確實是我偶然發現的,之前我的表名大概有30個字元的長度,當我把表名縮短後問題就解決了