Yus*_*him 5 javascript java spring-boot jhipster vuejs2
我刚刚通过 docker 镜像安装了 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!
Run Code Online (Sandbox Code Playgroud)
然后我在不同的终端上运行 ./mvnw -P-webpack 和 yarn start 。
两者都可以完美运行,应用程序在 localhost:8080 到 ./mvnw 以及 localhost:9000 从 npm start 上运行。
这是我当前的架构(来自 http://localhost:9000/admin/docs):
这是我的问题,虽然模式已经完美导入,但实体菜单仍然是空的。
我尝试过以下解决方案,但没有任何效果:
任何机构都可以帮助我如何解决这个问题?
通过使用-P-webpack
,您可以停用 webpack 配置文件,这意味着前端不是由 maven 构建的,也不是捆绑在后端中的,只有当您通过端口 9000 上的 webpack 开发服务器访问前端时,这才有效。
否则,如果您通过后端端口(8080)访问它,您将看到最新成功构建的结果,在您的情况下,该结果是在项目生成时还没有实体。
归档时间: |
|
查看次数: |
258 次 |
最近记录: |