Table configuration with catalog null, schema null错误的一个原因

时间:2014-12-15 09:03:17   收藏:0   阅读:5467

我在进行Mybatis调试时出现了下面的警告提示:

Generation Warnings Occured
  Table configuration with catalog null, schema null, and table 表名 did not resolve to any tables
  Mybatis generator操作没有产生结果。

多处找资料发现在我的

generatorConfig.xml文件中:

 <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:Mysql://localhost:3306/" userId="用户名" password="密码" />

换成这样就行了:

<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:Mysql://localhost:3306/库名子?characterEncoding=utf8" userId="用户名" password="密码" />

也许对大家有帮助。

原文:http://blog.csdn.net/yewei11/article/details/41929179

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!