Command line is too long

前言

最近在idea里运行项目时遇到的一个问题,无法run,报错如下Command line is too long. Shorten command line for ServiceStarter or also for Application,以下方法可以解决

解决

点击项目启动配置项 –> Enviroment –> Shorten command line 选项 –> 选择 classpath file 或JAR manifest 选项 –> 重新启动工程运行即可