How do I add a command line argument
to my Spring boot
application when using Intelij
.
My command when I open edit configurations is currently: spring-boot:run
:
I would like to add a command line arg after this.
For reference my main class extends implements CommandLineRunner
in your edit configuration you select the spring boot application and there you can fill in the program arguments... see screenshot of Application Arguments Configuration.
This is the spring boot configuration