Use Spring Profiles to differentiate prod and dev web-app.properties

Dear CUBA Team,

I’ve read below posts.

  1. Spring profiles can be used to customize application in different environments.
  1. OS environment variables can be used as a source of application properties values.

Could I use Spring Profiles to differentiate prod and dev web-app.properties?
if can’t, is OS environment variables my only choice at current platform 7.2 ?

If I understand correctly, current spring profile support for app.properties only at core module level.

Regards,
CK

Hi,

Just use $profile-web-app.properties for a profile-specific file for the web module.

Ok Noted… I will try on that. TQ for your suggestion :slight_smile: