esanchezros / quickfixj-spring-boot-starter

Spring Boot Starter for QuickFIX/J
Apache License 2.0
126 stars 59 forks source link

config file not work ? #68

Closed AntonyM55 closed 3 years ago

AntonyM55 commented 3 years ago

If I change the config path to different file such as /root/quickfixj-client.cfg, it doesn't work.

quickfixj: client: config: /root/quickfixj-client.cfg

esanchezros commented 3 years ago

Hi @AntonyM55

The quickfixj Spring Boot starter uses the PathMatchingResourcePatternResolver to load the config file. The configuration is resolved using the following approach:

If you want to use a file, you will need to prefix it with file:, so in your case file:/root/quickfixj-client.cfg

AntonyM55 commented 3 years ago

Thank you very much!