apollo icon indicating copy to clipboard operation
apollo copied to clipboard

apollo.bootstrap.namespaces 配置没有作用

Open ludayuan opened this issue 7 years ago • 4 comments

version:1.4.0 在yml 和 properties 中都试验了 apollo.bootstrap.namespaces 这个属性 没有任何效果,程序还是默认读取 application,配置如下 apollo.bootstrap.enabled = true apollo.bootstrap.namespaces=application,jg.pub-test 程序不读取 jg.pub-test 公共配置 只有这么配置 @EnableApolloConfig({"application","jg.pub-test"}) 才会读取 jg.pub-test 公共配置

看了下加在源码 发现如下 image 这个是写死了加载吗,还是说现有版本已经不支持apollo.bootstrap.namespaces 加载方式了,当然 -D 的启动方式也不好使 这个是使用问题还是版本bug

ludayuan avatar May 31 '19 03:05 ludayuan

这个公共配置目前只能针对于自己项目体系吗,能否支持全部项目,非同一app.id的项目

ludayuan avatar May 31 '19 03:05 ludayuan

com.ctrip.framework.apollo.spring.boot.ApolloApplicationContextInitializer#initialize(org.springframework.core.env.ConfigurableEnvironment)

nobodyiam avatar Jun 01 '19 12:06 nobodyiam

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in 14 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 03 '19 14:12 stale[bot]

This issue has been automatically closed because it has not had activity in the last 14 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

stale[bot] avatar Dec 18 '19 22:12 stale[bot]