Git Product home page Git Product logo

Comments (3)

ht-coder-wu avatar ht-coder-wu commented on August 26, 2024

调试发现 可能由于 yml文件配置服务元数据导致。如果使用 guide中 bootstrap.properties 配置的 eureka.instance.metadataMap.version=1.0 header中上传n-d-version生效,使用 application.yml 中eureka: instance: metadata-map: version: 1.0 header中上传n-d-version不生效。 感觉像是yml文件格式不兼容导致的

from discovery.

HaojunRen avatar HaojunRen commented on August 26, 2024

最后解决了么

from discovery.

ht-coder-wu avatar ht-coder-wu commented on August 26, 2024

@HaojunRen 最后解决了 应该问题定位到的还是我上面描述的部分,在yml文件中是idea自动提示的是叫metadata-map 而properties文件中是叫metadataMap 改成放到properties 或者yml文件中改成metadataMap都可以. 看起来像框架没有识别出服务的version配置,但是springadmin里面正常显示了元数据version的配置 。此外,如果不使用header传递规则,而使用rule.xml ,从一开始就没有问题。
我们的环境 springboot 2.0.2.RELEASE clould Finchley.SR3 discovery 用的4.13.13

from discovery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.