我使用Jhipster(generator-jhipster版本:@ 5.3.1)设置了以下组件
I setup the following components using Jhipster (version of generator-jhipster: @ 5.3.1)
Gateway Jhipster Registry UAA Server到目前为止一切正常.
在Jhipster注册表中,当我转到管理" >>"API"时,它将打开Swagger UI. Swagger UI仅列出Jhipster-Registry的api.但是,当在下拉列表中选择uaa或网关时,会产生错误.来自网关的Swagger UI(管理>> API)工作正常.仅从注册表中不起作用.
In Jhipster Registry, when I go to Administration >> API It opens up Swagger UI. Swagger UI lists the apis for Jhipster-Registry only. But it gives error when the uaa or gateway is selected in the drop down. Swagger UI From Gateway (Administration >> API) works fine. Only from registry it does not work.
如果缺少某些配置,请告诉我.
Please let me know if I am missing some configuration.
推荐答案UAA对注册表的支持是最近添加的,并将在下一版本中提供.如果您想尽早使用它,可以进行以下更改:
UAA support for the registry was just recently added and will be in the next release. If you want to have it early, you can make the following changes:
-
在您的UAA应用程序的UaaConfiguration.java中,添加.authorities("ROLE_ADMIN") 此处.
然后您可以将develop标记用于jhipster-registry Docker映像,并将uaa配置文件添加到该容器的SPRING_ACTIVE_PROFILES
Then you can use the develop tag for the jhipster-registry Docker image, and add the uaa profile to that container's SPRING_ACTIVE_PROFILES
- 如果您希望从源代码运行JHipster注册表,则可以克隆 jhipster-registry存储库并检查develop分支
- If you prefer to run the JHipster Registry from source, you can clone the jhipster-registry repository and check out the develop branch
更多推荐
微服务的JHipster
发布评论