Spring boot 应用程序属性的Jhipster注册表云服务器配置错误

Spring boot 应用程序属性的Jhipster注册表云服务器配置错误,spring-boot,jhipster,spring-cloud-config,jhipster-registry,Spring Boot,Jhipster,Spring Cloud Config,Jhipster Registry,所以我想覆盖我所有微服务的一些设置,所以我为此创建了一个git repo和一个application.yml文件 从jhipster下载注册表jar 使用以下命令运行它 java-jar jhipster-registry-5.0.2.jar--spring.profiles.active=prod--spring.security.user.password=xxx--jhipster.security.authentication.jwt.secret=abcde--spring.cloud

所以我想覆盖我所有微服务的一些设置,所以我为此创建了一个git repo和一个application.yml文件

  • 从jhipster下载注册表jar
  • 使用以下命令运行它

    java-jar jhipster-registry-5.0.2.jar--spring.profiles.active=prod--spring.security.user.password=xxx--jhipster.security.authentication.jwt.secret=abcde--spring.cloud.config.server.composite[0]。type=git--spring.cloud.config.server.composite[0]。uri=--spring.cloud.config.server.composite[0].username=xxx--spring.cloud.config.server.composite[0]。密码=xxx

  • 这些服务通过从application.yml获取数据的外部客户端进行通信。设置如下所示:

    application:
        external:
            services:
                service-name:
                    base-url: local
    
    但当我运行jhipster注册表指向该回购协议时。我得到以下错误

    Origin: ...
    Reason: The elements [] are left unbound
    
    我尝试使用各种组合作为文件名。application.yml、application-prod.yml、application-dev.yml、service-name.yml以及application.yml

    其他属性(如数据库密码和url)似乎没有问题。甚至像abc.abc.abc.abc=“data”这样的任意链也可以工作。我甚至到处玩,只是把拼写搞乱了,比如输入错误的外部、服务和应用程序

    当我把应用程序拼错时,比如aaaaapplication。它没有给出一个错误。只有当我在yml文件中包含“application:”时,jhipster才会抛出一个错误

    请确认我假设jhipster不允许覆盖应用程序是否正确。如果是的话,我怎么能覆盖它呢


    我不认为改变所有的服务是最好的。那么有没有解决方法?

    哪个application.yml?注册表使用的git回购协议根目录下的那个?注册表指向的那个。启动注册表时,会将其链接传递到注册表。spring.cloud.composite[0]=