Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.4.0:generate (default-cli) on project demo1: configfile Z:\IDEA_Project\demo1\yourLocation\mybatis-generator-config.xml does not exist
这个错误信息找这行代码:
将yourLocation替换成正确路径(以pom.xml为基准,当然绝对路径最好),我的用的maven工程所以是这样的:
<configuration>
<!--配置文件的位置-->
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
最后重新运行即可解决问题