Application arguments can be specified using arguments. The following sets two arguments: property1 and property2=42:


On the command-line, arguments are separated by a space the same way jvmArguments are. If an argument contains a space, make sure to quote it. In the following example, two arguments are available: property1 and property2=Hello World:

mvn spring-boot:run"property1 'property2=Hello World'"