我刚刚通过码头映像安装了JHipster (VueJS),并直接从https://start.jhipster.tech/jdl-studio/导入了jdl文件。
jhipster@66b8176ee05f:~/app$ jhipster import-jdl ../jhipster.jdl
INFO! Using JHipster version installed locally in current project's node_modules
INFO! Executing import-jdl ../jhipster.jdl
INFO! Found .yo-rc.json on path. This is an existing app
INFO! The JDL is being parsed.
warn: In the One-to-Many relationship from Employee to Job, only bidirectionality is supported for a One-to-Many association. The other side will be automatically added.
warn: In the One-to-Many relationship from Department to Employee, only bidirectionality is supported for a One-to-Many association. The other side will be automatically added.
INFO! No change in entity configurations, no entities were updated.
INFO! The JDL has been successfully parsed
INFO! Congratulations, JHipster execution is complete!
然后我跑了。/mvnw -P-webpack,也是在不同的终端上开始的纱线。
两者都工作得很好,应用程序运行在localhost上:8080调用/mvnw,以及localhost:9000,从npm开始运行。
下面是我的当前模式(来自http://localhost:9000/admin/docs):
这是我的问题,尽管模式已经很好地导入,但是实体菜单仍然是空的。
我试过以下解决办法,但没有什么是有效的:
从空cache.
有谁能帮我解决这个问题吗?
发布于 2020-09-28 21:06:15
通过使用-P-webpack
,您可以禁用webpack配置文件,这意味着前端不是由maven构建的,也不是绑定在后端的,只有在通过端口9000上的webpack dev服务器访问前端时才能工作。
否则,如果您通过后端端口(8080)访问它,您将看到最新成功构建的结果,在您的示例中,这是在项目生成时还没有实体的时候。
发布于 2021-02-04 09:55:44
你检查过你的头/菜单模块了吗?升级时我丢失了所有的实体列表。
它似乎被从src/main/webapp/app/shared/layout/menus.entities.tsx
中删除了(使用react)。对于那些使用角度,检查相同的模块。
恢复发电机所做的改变为我解决了这个问题。
发布于 2021-06-18 08:46:34
直接从JDL生成JHipster项目会复制这个问题。我用角度击中它,所以它与Vue无关。
我通过分裂这一步找到了解决办法:
jhipster import-jdl my-jdl-file.jdl
至:
jhipster
jhipster import-jdl my-jdl-file.jdl
或致:
jhipster import-jdl my-jdl-file-application-part-only.jdl
jhipster import-jdl my-jdl-file-entities-part.jdl
它解决了“无实体”问题。
https://stackoverflow.com/questions/64107312
复制相似问题