![](/img/trans.png)
[英]Can't run jhipster-registry in Eclipse with dev profile, needs Git repo
[英]Configuring jhipster-registry v3.0.3 with Git repo
我正在尝试使用预先打包的v3.0.3 war文件用于jhipster-registry。 我正在使用这些命令行属性启动它,试图将它指向我的Git仓库以获取配置信息:
jhipster-registry-3.0.3.war --spring.profiles.active=prod,cust1 \
--spring.cloud.config.server.git.uri=http://myserver/url/MyConfig \
--spring.cloud.config.server.git.username=user \
--spring.cloud.config.server.git.password=pass
它开始,但我总是得到这个错误:
Your JWT secret key is not set up, you will not be able to log into the JHipster
我已经尝试了很多如何设置Git repo的组合。 我正在使用来自https://github.com/jhipster/jhipster-registry-sample-config的示例application.yml文件
jhipster-registry本身是不是从Git读取任何配置文件?
如果我想配置jhipster-registry属性,我应该在命令行上保留覆盖内容,还是将yml文件放在某处? 当它是一个预构建的war文件并且嵌入了bootstrap / application yml文件时,我不清楚配置它的正确方法。
有没有办法打开调试日志记录,以便我可以看到发生了什么?
这是因为您的Git存储库中未配置您的JWT令牌。 看看我们的示例Git存储库 。 注册表将此令牌发送到所有已配置的应用程序,因此将能够连接到它们。
否则,它会显示警告,因为它知道这将是一个问题。
请注意,这与“经典”Eureka和Spring Cloud Config服务器不同,默认情况下不受保护。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.