I'm using this command line in order to start my service locally:
mvn -pl rep-digital-api clean compile spring-boot:run \
-Dspring-boot.run.arguments=--spring.config.additional-location=front-pre-props.properties
pre
profile is activated since front-pre-props.properties
contains spring.profiles.active=pre
.
Into default application-dev.properties
I've set this property:
api.path-web=web
Nevertheless, I need to simulate pre
profile into my local environment. So I need to change this property value:
api.path-web=other-path
Nevertheless, this property is not overriden.
Also I've tested it seting -Dapi.path-web=other-value
in to mvn command, but it doesn't work...
Any ideas?