Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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;

Code Block
languagetext
titlebootstrap.properties
spring.cloud.config.server.bootstrap=true
spring.profiles.active=native,development-tools
spring.cloud.config.server.native.searchLocations=file:${spring.config.location:.}

...


Or run Blueriq from the command line or in a batch file as follows:

Code Block
languagetext
java -jar blueriq-web-standalone.jar --spring.profiles.active=native,development-tools

 


Or in Eclipse, add the spring profiles to the VM arguments of the Run configuration:

-Dspring.profiles.active=native,development-tools 

Note

Don't remove the "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 class path or file system