Saturday, January 30, 2021

Maven to Spring Application.Properties - Profile

 #server.port=8081

spring.profiles.active=@activatedProperties@

https://www.petrikainulainen.net/programming/tips-and-tricks/creating-profile-specific-configuration-files-with-maven/


<profiles>

<!-- DEV Build -->

<profile>

<id>DEV1</id>

<properties>

<activatedProperties>DEV1</activatedProperties>

</properties>

</profile>


<!-- AZURE Build -->

<profile>

<id>QA</id>

<properties>

<activatedProperties>QA</activatedProperties>

</properties>

</profile>

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass