Comments (5)
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.
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.
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.
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.
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)
- Initial Tasks HOT 12
- Upgrading out of incubator HOT 7
- Sharing properties across microservices HOT 1
- Support Multiple application names passed in a request
- Artifact cannot be found in the given repositories HOT 2
- Provide separate settings for MongoDb HOT 1
- mvn package打包失败
- Embedded MongoDB Config Server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-cloud-config-server-mongodb.