微服务的JHipster

编程入门 行业动态 更新时间:2024-10-27 04:25:02
本文介绍了微服务的JHipster-Registry Swagger UI对UAA说invalid_token的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用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

本文发布于:2023-10-29 13:16:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539790.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:JHipster

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!