I have a Spring Boot application 3.1.3 using two yml profiles
<code>application.yml
application-prod.yml
</code>
<code>application.yml
application-prod.yml
</code>
application.yml
application-prod.yml
The problem is that when I start the application using the prod profile, it is not overwriting this application.yml property with this property.
<code>application properties
---
spring:
profiles:
active: prod
cloud.config:
label: main
uri: https://config-server-main
</code>
<code>application properties
---
spring:
profiles:
active: prod
cloud.config:
label: main
uri: https://config-server-main
</code>
application properties
---
spring:
profiles:
active: prod
cloud.config:
label: main
uri: https://config-server-main
It continues to use this application.yml property
<code> cloud.config:
label: qa
uri: https://config-server-qa
</code>
<code> cloud.config:
label: qa
uri: https://config-server-qa
</code>
cloud.config:
label: qa
uri: https://config-server-qa
What is the correct way to overwrite?