Suppose the spring active profiles are set in the command line, is it possible to override the command line setting via some setting in the application ? I have tried to set it in the application yaml file but it doesn't override and the system is still using the command line setting.
//command line
java -Dspring.profiles.active=testing
//application yaml
spring:
profiles:
active: dev