1.mybatis-generator-maven-plugin:1.3.2:generate failed: Exception getting JDBC Driver
看这样的错误提示就是没有获取到mysql的驱动jar包。在此处,是故意犯得错误。我见别人的博客讲需要加载的jar包如果在classpath下的话是不需要此配置的。因为我用的是 idea +maven 环境。再次配置上classPathEntry 属性后此问题解决。
2.The connection property 'allowPublicKeyRetrieval' acceptable values are: 'TRUE', 'FALSE', 'YES' or 'NO'. The value 'true}' is not acceptable.
或者是:
mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project custom_mybatis_generator: Unknown database 'imedera}'
我就气死了,妈的,多了一个括号。
3.Mybatis Generator 逆向工程生成的表是所有的数据库中的,并不是在connectionUrl中设置的数据库
因为在table中设置了tableName=“%”,但是并没有配置catalog属性值。
4.必须声明元素类型 "domainObjectRenamingRule"。