0
点赞
收藏
分享

微信扫一扫

Cannot obtain primary key information from the database, generated objects may be incomplete


问题描述

在整合mybatis时只是生成了两个insert()函数,并且提示

[WARNING] Cannot obtain primary key information from the database, generated objects may be incomplete

Cannot obtain primary key information from the database, generated objects may be incomplete_mysql

解决方法

在jdbc连接url上加nullCatalogMeansCurrent=true

url=jdbc:mysql://localhost:3306/helloword?useUnicode=true&characterEncoding=utf-8&nullCatalogMeansCurrent=true

亲测已经解决

Cannot obtain primary key information from the database, generated objects may be incomplete_ico_02


Cannot obtain primary key information from the database, generated objects may be incomplete_自动生成_03


举报

相关推荐

0 条评论