Spring 云配置服务器纯文本

Spring Cloud Config Server plain text

我一直在研究 Spring 云配置服务器,但我无法按预期返回纯文本文件。此处的概述 http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_serving_plain_text 描述了通过端点提供实际文件内容的能力:

/foo/default/master/nginx.conf

但我无法让它工作。在我的 Spring 服务器配置中,我有:

spring:
  cloud:
    config:
      server:
        git:
          uri: ssh://xxxxxxxx/cloudconfig.git
          cloneOnStart: true
          searchPaths: test

并且在我的 cloudconfig 存储库中我有 2 个文件(都称为 simple.conf),一个在根目录中,一个在 /test 目录中,所以我假设我应该能够点击 URL

http://localhost:8888/test/default/master/simple.conf

并获取 simple.conf 文件的内容,但我尝试过的每个组合都得到 404。

我使用的是 1.0.4.RELEASE 版本

有这方面的工作示例还是我误解了用法?

根据 Spencer 的评论,我使用的版本不支持此功能,因此使用 1.1.0.M5 为我解决了此问题。