开发环境:
Idea Maven Mysql版本 6.0.6
报错信息(以下所有的报错信息均只截取了重要部分):
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.225 s
[INFO] Finished at: 2019-03-25T21:43:48+08:00
[INFO] Final Memory: 14M/168M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project xingkeduo_business_workpad: Column name pattern can not be NULL or empty. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
原因,获取不到配置信息具体的值,因为mysql的版本太高了。
解决方案:
把build时mysql的版本替换成低于6的版本。
如图:
---------------------------