首页 > 代码库 > Table configuration with catalog null, schema null错误的一个原因
Table configuration with catalog null, schema null错误的一个原因
我在进行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="密码" />
也许对大家有帮助。
Table configuration with catalog null, schema null错误的一个原因
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。