Issue
In my application yml, I have two profiles which I need to both run
spring:
profiles:
active:
awss3, @env@
application:
name: CONFIG-SERVICE
I need awss3 to be run, in what ever the env is. Is this possible ?
Solution
yes, using properties:
// Use your dynamic profile
spring.profiles.active=@env@
// Include your default profile
spring.profiles.include=awss3
yaml:
spring:
profiles:
include: awss3
active:
@env@
Answered By - Bhushan Uniyal
Answer Checked By - Cary Denson (JavaFixing Admin)