【发布时间】:2018-04-20 08:08:40
【问题描述】:
我在 Windows 环境(开发)上使用registry release 3.2.4。
我想更改默认管理员密码。
根据documentation,我只需要在我的application-*.yml 文件上定义security.user.password。
所以我的central-config/application-dev.yml变成了
jhipster:
security:
authentication:
jwt:
secret: my-secret-token-to-change-in-production
registry:
password: admin123
我启动我的注册表java -jar jhipster-registry/jhipster-registry-3.2.4.war --spring.profiles.active=swagger,dev,native(这里设置参数--spring.profiles.active只是为了确保我的配置文件正确加载)。
我尝试使用管理员用户连接http://127.0.0.1:8761/#/...但我的新密码不起作用(只是默认的“管理员”密码仍然有效)。
当注册表启动时,我收到了这些警告
WARN 1152 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
WARN 1152 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with key 'zuulEndpoint' has been registered as an MBean but has no exposed attributes or operations
当我尝试连接时,这个警告
WARN 1152 --- [ XNIO-2 task-1] o.s.c.n.zuul.web.ZuulHandlerMapping : No routes found from RouteLocator
当我查看应用程序上的配置加载时,它看起来还不错 My cloud configuration
我尝试在启动注册表时添加-e JHIPSTER_SECURITY_AUTHENTICATION_JWT_SECRET=my-secret-token-to-change-in-production 和-e SECURITY_USER_PASSWORD=admin123,但仍然不起作用。
有什么想法吗?
谢谢
【问题讨论】:
标签: jhipster jhipster-registry