Giter Site home page Giter Site logo

Comments (5)

venilnoronha avatar venilnoronha commented on July 20, 2024

You could access it via http://localhost:8080/master/gateway/prod.properties.

Following are the alternate formats.

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

Refer to the Documentation for more details.

Does this solve your query?

from spring-cloud-config-server-mongodb.

akashraj05 avatar akashraj05 commented on July 20, 2024

Hi venilnoronha,

How i can write the client for this. I need to refreash some key in my service using this. I used @RefreshScope for the same but it didn't work.

PFB the code

@RefreshScope
@RestController
class MessageRestController {
@value("${message:Hello default}")
private String message;

@RequestMapping("/message")
String getMessage() {
    return this.message;
}

}

message is not getting refresh automatically in it. How it can be refresh automatically as it gets updated in mongodb

from spring-cloud-config-server-mongodb.

venilnoronha avatar venilnoronha commented on July 20, 2024

You need to hit the http://HOST:PORT/refresh endpoint to load the updated configuration. Check out the documentation for more details.

from spring-cloud-config-server-mongodb.

akashraj05 avatar akashraj05 commented on July 20, 2024

So You are saying that i have to refresh it every time i change anything in mongodb. But in git implementation it is getting auto refresh after some time.

from spring-cloud-config-server-mongodb.

venilnoronha avatar venilnoronha commented on July 20, 2024

Currently, the MongoDB implementation doesn't support the monitoring feature. The Git based implementation relies on a watcher defined in spring-cloud-config-monitor, and therefore, properties are updated as soon as a commit notification is received.

As a workaround, you could use some logic similar to this comment to automatically update properties.

Thanks for bringing this up. I'll do some investigation and see what could be done.

from spring-cloud-config-server-mongodb.

Related Issues (9)

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.