首页 文章

Spring Cloud Config Server纯文本

提问于
浏览
1

我一直在研究Spring Cloud Config Server,但我无法按照预期返回纯文本文件 . 这里的概述http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_serving_plain_text描述了通过和 endpoints 提供实际文件内容的能力:

/foo/default/master/nginx.conf

但是我无法让它发挥作用 . 在我的Spring Server配置中,我有:

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

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

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

并获取simple.conf文件的内容,但我已经尝试了每个组合的404 .

我正在使用1.0.4.RELEASE版本

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

1 回答

  • 1

    根据Spencer的评论,我使用的版本不支持这样使用1.1.0.M5为我解决了这个问题 .

相关问题