一般有两种情况
第一种是配置问题可以参考博客
http://blog.csdn.net/angel_xiaa/article/details/52474022
第二种是mysql-connector-java版本问题,出现警告
(Cannot obtain primary key information from the database, generated objects may be incomplete
)
可以参考博客
http://blog.csdn.net/angel_xiaa/article/details/52474022
转自:https://blog.csdn.net/qq_15127715/article/details/78139228