Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

microservice.config.file key not working in properties file #312

Open
tdziurko opened this issue Mar 5, 2015 · 1 comment
Open

microservice.config.file key not working in properties file #312

tdziurko opened this issue Mar 5, 2015 · 1 comment
Labels

Comments

@tdziurko
Copy link

tdziurko commented Mar 5, 2015

I've tried to customize name of microservice.json file by adding

microservice.config.file=classpath:microservice-es.json

to the application.properties file, but it doesn't seem to work. I've launched project locally in debug and strangely it looks like beans using microservice.config.file are fired before application.properties are loaded so always default microservice.json is loaded.

However passing this settings in command-line script as

-Dmicroservice.config.file=classpath:microservice-es.json

seems to work as expected

@tdziurko tdziurko added the bug label Mar 5, 2015
@marcingrzejszczak
Copy link
Contributor

Related to #457 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants