最近做一个SSM的项目,在做逆向工程的时候出现了几个错误,记录一下:
1、Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project Mall: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate failed: Exception getting JDBC Driver
在generatorConfig.xml文件中添加了jdbc驱动包的绝对路径,解决了问题。
2、[WARNING] Table configuration with catalog null, schema null, and table admin did not resolve to any tables
数据库里没有创建表
3、Some problems were encountered while building the effective model for com.lixiang:Mall:war:1.0
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 172, column 15
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.
pom.xml文件缺少plugin插件的版本号,添加之后没有报错。
4、Some problems were encountered w

本文记录了在使用SSM框架进行逆向工程时遇到的四个错误及其解决方案:1)JDBC Driver获取失败,通过在generatorConfig.xml添加jdbc驱动路径解决;2)未找到数据库表,检查是否已在数据库创建对应表;3)Maven编译插件版本缺失,补充版本号即可;4)Maven settings.xml文件中出现未知标签问题,注释或修正该标签恢复正常。
最低0.47元/天 解锁文章
470

被折叠的 条评论
为什么被折叠?



