Giter VIP home page Giter VIP logo

Comments (7)

yanhom1314 avatar yanhom1314 commented on July 19, 2024

图片
去掉.yml,配置文件名称得完全一致

from dynamic-tp.

kazetyan avatar kazetyan commented on July 19, 2024

图片 去掉.yml,配置文件名称得完全一致

不行哦,properties可以不带后缀,其他的必须带后缀
image

from dynamic-tp.

yanhom1314 avatar yanhom1314 commented on July 19, 2024

图片
参考下example,在这儿有配置吗

from dynamic-tp.

kazetyan avatar kazetyan commented on July 19, 2024

apollo.bootstrap.namespaces 没有显式配置,默认配置是application 会去加载application.properties

我是想把当前项目里使用的配置和dtp的配置通过ns区分开,期望情况是应用启动的时候去加载apollo的application.properties ,再根据spring.dynamic.tp.apollo.namespace=dtp-test.yml 去加载dtp-test.yml 的配置

现在实际的情况是只会加载application.properties

from dynamic-tp.

yanhom1314 avatar yanhom1314 commented on July 19, 2024

需要配置的,apollo里创建的配置文件都要在这里配置的。项目启动会根据这些配置拉去配置的,spring.dynamic.tp.apollo.namespace=dtp-test.yml是用来配置动态刷新的

from dynamic-tp.

kazetyan avatar kazetyan commented on July 19, 2024

image

感谢,已解决,成功收到变更通知

  1. 在应用内的apollo.bootstrap.namespacesdtp-test.yml加上
    image
  2. apollo的application.properties 只保留引入dtp之前的配置,删掉dtp相关的配置,把dtp所有的配置都放在dtp-test.yml
    image

from dynamic-tp.

yanhom1314 avatar yanhom1314 commented on July 19, 2024

ok

from dynamic-tp.

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.