问答详情
源自:2-4 Mybatis自动生成器使用方式

Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: Unknown database 'miaosha' -> [Help 1]

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: Unknown database 'miaosha' -> [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.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


提问者:qq_Michael_qA 2019-01-16 22:22

个回答

  • 32岁学编程
    2019-01-17 11:06:19
    已采纳

    数据库建了吗?名字是不是miaosha

  • qq_Michael_qA
    2019-01-17 14:33:46

    名字写错了

  • Amoo丶怜悯
    2019-01-17 11:40:08

    没有miaosha这个数据库

  • 慕前端2020230
    2019-01-17 11:00:58

    mybatis-generator-maven-plugin:1.3.5

    更换版本为1.3.7即可,试试看,我也是这个问题