问题描述
在整合mybatis时只是生成了两个insert()函数,并且提示
[WARNING] Cannot obtain primary key information from the database, generated objects may be incomplete
解决方法
在jdbc连接url上加nullCatalogMeansCurrent=true
url=jdbc:mysql://localhost:3306/helloword?useUnicode=true&characterEncoding=utf-8&nullCatalogMeansCurrent=true
亲测已经解决