V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wly19960911
V2EX  ›  问与答

求问 spring-cloud-config 里面 config 路径匹配规则的一些问题

  •  
  •   wly19960911 · 2017-06-05 20:58:41 +08:00 · 2042 次点击
    这是一个创建于 2488 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在学习 spring-cloud-config 的时候,我发现一些问题,spring-cloud-config 在寻找配置文件的时候是以下的格式。 这个也是文档给的。

    /{application}/{profile}[/{label}]
    /{application}-{profile}.yml
    /{label}/{application}-{profile}.yml
    /{application}-{profile}.properties
    /{label}/{application}-{profile}.properties
    

    后四种格式我都知道,第一种的匹配规则究竟是怎样的?

    PS:别人给的教程都是后四种的,当然,我自己也成功的使用了后四种中的一个成功有返回了。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1137 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:38 · PVG 02:38 · LAX 11:38 · JFK 14:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.