jdl文件生成项目报错 有更新!

  , ,
评论 • 149 浏览

    执行jhipster import-jdl xxx.jh –debug 报以下错误

    Using JHipster version installed globally
    Debug logging is on
    DEBUG!  Executing CLI only script
    DEBUG!  cmd: import-jdl from ./import-jdl
    DEBUG!  args: jhipster-meeting.jh, commands: Object, options: Object, _execs: Object, _allowUnknownOption: true, _args: Object, _name: import-jdl, _noHelp: false, parent: Object, _description: Create entities from the JDL file passed in argument, _argsDescription: undefined, _events: Object, _eventsCount: 1
    Executing import-jdl jhipster-meeting.jh
    Options: debug: true, from-cli: true
    DEBUG!  JDLProcessor started with jdlFiles: jhipster-meeting.jh and options: debug: true, from-cli: true
    The JDL is being parsed.
    DEBUG!  Error:
    Error: The JDL object and the database type are both mandatory.
    ERROR! Error while parsing applications and entities from the JDL Error: The JDL object and the database type are both mandatory.
    

    解决办法:项目中缺少生成项目的 .yo-rc.json文件,将其加入到项目根目录即可

    版权声明:本文为博主原创文章,欢迎大家转载,但需保留文章链接。个人博客地址:http://www.wenboblogs.cn
    评论
    validate