I am using spring-boot: 1.2.2
This is the syntax supplied in the docs (I get Unknown command-line option '--spring.profiles.active'.
when I start using the command)
gradlew bootRun --spring.profiles.active=noAuthentication
I tried this but it does not work
gradlew bootRun -Dspring.profiles.active=noAuthentication
I have found elsewhere that this should work but it does not
gradlew bootRun -Drun.jvmArguments="-Dspring.profiles.active=noAuthentication"
I added the following to application.properties and it works correctly.
spring.profiles.active=noAuthentication
How to you pass this argument from the command line?