Giter Club home page Giter Club logo

Comments (4)

addonepiece avatar addonepiece commented on July 3, 2024

dear dashen

   同问

Thanks & Best Regards

from springcloudlearning.

qinjf avatar qinjf commented on July 3, 2024

这个需要确认下你的spring.application.name、spring.cloud.config.profile对应的文件是否在git里边存在。
不存在的话,可以加一个spring.cloud.config.name来指定你的文件的名
比如:
server.port=8881
spring.application.name=config-f-client
spring.cloud.config.name=config-client
spring.cloud.config.profile=dev
spring.cloud.config.label=master

from springcloudlearning.

sensornan avatar sensornan commented on July 3, 2024

按我理解的应该是用户自己写的project 的配置文件是yml格式的吧,然后作者给的公共 git repository中的文件是properties格式,因为spring-boot启动项目后如果配置文件是yml,那么它就会默认去找yml格式的文件,如果是properties,它就会默认找properties文件

from springcloudlearning.

Seanforfun avatar Seanforfun commented on July 3, 2024

Hey, there.
I tried to fix this problem by adding in config-client pom.xml

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-config-client</artifactId>
</dependency>

After learning from this respository, I tried to make my own conclusion and here is the link for this part: Spring Cloud config, you can also find my code from here.

I hope this works for you.

from springcloudlearning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.