Table configuration with catalog null, schema null错误的一个原因
2014-12-14 21:34
561 查看
我在进行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="密码" />
也许对大家有帮助。
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错误的一个原因
- 使用工具创建实体类出现的错误!Table configuration with catalog null, schema null, and table t_ssm_resource did not
- 2016.7.12 Table configuration with catalog null, schema public, and table globalpage did not resolve to any tables(疑)
- Mybatis generator,Table configuration with catalog null, schema null
- 2016.7.12 Table configuration with catalog null, schema public, and table globalpage did not resolve to any tables(疑)
- Table configuration with catalog null, schema null, and table su_menu did not resolve to any tables
- oracle 生成对应文件时报错 Table configuration with catalog null, schema null...
- Table configuration with catalog null, schema orcl, and table ORDERS did not resolve to any tables
- ASP .NET错误信息:"/"应用程序中的服务器错误。列"uaddrgt"不属于表Table 的一个原因及解决办法
- Maven for Myeclipse的一个常见错误 Project configuration is not up-to-date with pom.xml
- 错误“操作必须使用一个可更新的查询”原因及解决办法
- 今日工作心得:能够引起FileUpload控件的PostedFile总是为null的一个原因
- .NET调用Java方法时出现的一个错误及其原因
- SSH 更新操作时报的一个错误The given object has a null identifier
- vs.net C# 连接数据库 出现错误 用户 '(null)' 登录失败。原因: 未与信任 SQL Server 连接相关联
- 一个奇怪的错误:类型“ControlBase”在未被引用的程序集中定义。必须添加对程序集“App_Code.xxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”的引用。
- a different object with the same identifier value was already associated with the session 一个经典的hibernate错误
- 触发ASSERT(afxCurrentResourceHandle != NULL)错误的原因
- Oracle学习笔记:一个特殊的ORA-12541错误原因
- 今天写HQL出现了一个低级错误,将from 写错成form了 出现java.lang.IllegalArgumentException: node to traverse cannot be null!