Gradle 4.9向引入了--args参数bootRun,我可以从命令行轻松使用它,但是如何在Intellij 2018的运行/调试配置中使用它呢?
设置了Gradle构建以bootRun在Intellij中的项目上运行任务后,我在“运行/调试配置”屏幕中尝试了以下参数,但没有成功:
--args 'foo'--args='foo'--args=fooIntellij的输出:
9:18:56 AM: Executing task 'bootRun --args='foo''...
Unknown command-line option '--args'.
9:18:57 AM: Task execution finished 'bootRun --args='foo''.
Run Code Online (Sandbox Code Playgroud)