You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

To tell Blueriq to make use of profile specific configuration you need to add the name of the corresponding profile to the spring.profile.active property in bootstrap.properties, like this;

 

spring.cloud.config.server.bootstrap=true

spring.profiles.active=native,development-tools

spring.cloud.config.server.native.searchLocations=file:${spring.config.location:.}

 

N.B. Don't remove the configured "native" profile. It is one of Spring's predefined profiles that needs to be configured to be able to load the config files from the local classpath or file system 

 

Run Blueriq from the command line or in a batch file as follows:
java -jar blueriq-web-standalone.jar --spring.profiles.active=native,development-tools

 

In Eclipse:
- add the spring profile called 'dev' to the VM arguments of the Run configuration:
-Dspring.profiles.active=native,development-tools

  • No labels