gpt4 book ai didi

java - JHipster JDL 未生成任何内容,因为必须传递数据库类型

转载 作者:行者123 更新时间:2023-12-01 16:48:52 24 4
gpt4 key购买 nike

我正在使用 Jhipster 4.5.3 从我创建的 JDL 文件生成一些代码。因为我无法生成任何东西,所以我采取了 JDL Blog sample ...我也有同样的问题。

JDL documentation仍然提到:

You can generate entities from a JDL file by running jhipster import-jdl your-jdl-file.jh

但是当我这样做时,我得到:

The jdl is being parsed. { name: 'NullPointerException', message: 'The parsed JDL content and the database type must be passed.',

寻找at the code ,看起来我们必须传递一个新参数,即数据库类型(顺便说一句,文档中没有提到这一点)。 Looking at the code again ,有相当多的数据库类型可供选择。但我选择的任何数据库,我都会得到

Error: Could not find postgresql, make sure the path is correct!

at Environment.error (/Users/agoncal/.config/yarn/global/node_modules/yeoman-environment/lib/environment.js:89:38)
at jdlFiles.forEach (/Users/agoncal/.config/yarn/global/node_modules/generator-jhipster/generators/import-jdl/index.js:42:34)
at Array.forEach (native)
at constructor.validate (/Users/agoncal/.config/yarn/global/node_modules/generator-jhipster/generators/import-jdl/index.js:40:31)
at Object.<anonymous> (/Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/lib/index.js:417:23)
at /Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/node_modules/run-async/index.js:25:25
at Promise (<anonymous>)
at /Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/node_modules/run-async/index.js:24:19
at /Users/agoncal/.config/yarn/global/node_modules/yeoman-generator/lib/index.js:418:9
at runCallback (timers.js:800:20)

有什么想法吗?

最佳答案

您是否首先生成了带有“yo jhipster”的应用程序?您可以发布生成的 .yo-rc.json 吗?

关于java - JHipster JDL 未生成任何内容,因为必须传递数据库类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44634055/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com