knightliao / disconf

Distributed Configuration Management Platform(分布式配置管理平台)
http://disconf.readthedocs.io/
Apache License 2.0
5.56k stars 2.29k forks source link

disconf 与spring boot相关注解如何集成 #202

Open huluohu opened 7 years ago

huluohu commented 7 years ago

spring boot中的@ConditionalOnProperty @ConfigurationProperties这些注解能够读到disconf下载下来的配置吗?

liguo204 commented 7 years ago

disconf,spring cloud config 虽然是相同功能的组件,但是用了spring cloud config 的怎么更好的使用disconf?运维还是很方便处理的

0xbillw commented 7 years ago

同问。自带demo的“disconf-spring-boot-web”并不能说明disconf与spring-boot很好的集成。

hbbtym commented 7 years ago

与spring boot集成的时候并不能很好的支持spring boot的多profile,disconf.properties里面引用不到application.properties的配置

QiuMing commented 7 years ago

同问楼上,disconf.properties 在 spring boot 中,如何支持多个profile,即在不同环境下,使用不同的disconf.properties

chshzh2000 commented 5 years ago

请教下大家:像dubbo、mysql、redis等相关的配置,之前是外挂配置,例如外挂为:dubbo.properties、mysql.properties、redis.properties,application.properties文件使用了变量引用,引用外挂配置文件的属性,现在要将这些外挂文件由配置中心托管,如何让这些托管文件先于application.properties加载前就下载到classpath中,否则项目启动总是提示找不到dubbo.properties、mysql.properties、redis.properties文件。