0

My schema names are different for Test and Prod environments. How to access them from properties file? I want to read the schema from the properties file based on the environment. Tried the link suggested by adding in datasource config but it is not working. The database is SQL server.

Dale K
  • 25,246
  • 15
  • 42
  • 71

1 Answers1

0

you need to create a properties file for each profile (applications-test.properties and applications-prod.properties) and for each env you put your database configuration.

Make sure to use the right profile in your code.

Kamèl Romdhani
  • 342
  • 1
  • 9