Comments (5)
Can you provide a reproducer?
from vertx-config.
Hi, I used the code from example or from description with addition of .conf, but I tried without .conf too.
I tried then config directory move to another places to check, if I perhaps path not right defined.
I played with ("path", "resources/config") too, always the same Problem, Empty result.
In file I used normal property syntax: e.g. level.max_user_number=20
ConfigStoreOptions dir = new ConfigStoreOptions()
.setType("directory")
.setConfig(new JsonObject().put("path", "resources/config")
.put("filesets", new JsonArray()
.add(new JsonObject().put("pattern", "dir/json"))
.add(new JsonObject().put("pattern", "dir/.properties")
.put("format", "properties"))
.add(new JsonObject().put("pattern", "dir/*.conf")
.put("format", "properties"))
));
from vertx-config.
Already works. Problem was, that I have config files under src/main/resources/config directory,
if I use .setType("directory").setConfig(new JsonObject().put("path", "src/main/resources/config")
...it works, if I use .setType("directory").setConfig(new JsonObject().put("path", "config"), does not work. Is this a problem with classpath?
from vertx-config.
Yes, it's a problem with the classpath. The path
is considered relative to the CWD
(current working directory). In your IDE it's often the project root.
from vertx-config.
Close as reported by the user.
from vertx-config.
Related Issues (20)
- java.lang.IllegalArgumentException: unknown configuration store implementation: spring-config-server HOT 1
- Sometimes VaultConfigStoreTestBase#testWithRevokedRootToken fail HOT 2
- ConfigRetriever uses data type double for Integer env values HOT 1
- Invalid docs for ConfigRetriever HOT 2
- ConfigRetriever possibly responsible for 'Multi threaded access request' failures HOT 4
- Update to typesafe config 1.3.4
- ConfigRetriever doesn't load properties file + small typo in factory name HOT 9
- config().getString is not perfect HOT 8
- Allow hierarchical parsing for system properties
- Allow hierarchical parsing of properties files in directory config store
- JavaScript, Kotlin, Groovy and Ruby config documentation not available HOT 1
- Support for kubernetes as a vault auth backend
- Vertx 4.2.1 Redis ConfigReader issue
- support CONFIG_FORCE_ environment variables with HOCON config file format HOT 1
- Update Doc relate to additional formats or move implementations to core-lib META-INF/services HOT 2
- Feature request: Support for POST in HTTP Config Retriever
- Config retriever doesn't get config for spring-cloud-config with HTTPS HOT 4
- Cannot read config file when upgrading to 4.3.3 HOT 4
- Remove databind use vault
- Updating Snakeyaml to v2 has a breaking API HOT 4
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 vertx-config.