Error running' xxxxxx': Command line is too long. Shorten command line for xxxxxxxxx

在Intell IDEA运行main函数的时候遇到了如下错误:

Error running' xxxxxx': Command line is too long. Shorten command line for xxxxxxxxx

是命令行的参数太长,需要进行修改。修改过程如下:

在run-> edit configuration中修改红色画圈部分,选择如下选项图中红色画圈的部分即可:

Error running' xxxxxx': Command line is too long. Shorten command line for xxxxxxxxx