使用 Spring Boot 构建自己的配置服务器

own Configurations Server build with Spring Boot

现在有人知道我如何构建自己的配置服务器作为微服务来存储和加载 .properties 文件吗? 我发现 Spring Cloud Config 真的很有趣,但是你在那里使用 git 作为目标,在我的例子中它只是一个文件系统 .. 感谢您的任何建议

Spring Cloud Config 还支持原生文件系统后端,而不是 git 或 svn。您可以将其与以下选项一起使用

spring.profiles.active=native
spring.cloud.config.server.native.searchLocations= xxxx

您可以在官方文档的 'File System Backend' 部分找到更多默认值:http://cloud.spring.io/spring-cloud-static/spring-cloud-config/1.3.0.RELEASE/