项目启动报错Command line is too long. Shorten command line for ServiceStarter or also for Application

Command line is too long. Shorten command line for ServiceStarter or also for Application

项目启动报错Command line is too long. Shorten command line for ServiceStarter or also for Application_第1张图片

这个报错对于某些新手导入项目后第一次启动遇到的一个常见问题,下面笔者提供两个解决办法供大家参考

方式一
1、打开项目配置:
项目启动报错Command line is too long. Shorten command line for ServiceStarter or also for Application_第2张图片
2、在打开的配置窗口中选中启动时报错的项目,并打开environment下拉选项
项目启动报错Command line is too long. Shorten command line for ServiceStarter or also for Application_第3张图片
3、将项目的 Shorten command line 修改为 classpath file或者JAR manifest
项目启动报错Command line is too long. Shorten command line for ServiceStarter or also for Application_第4张图片

方式二:
1.找到.idea下的workspace.xml文件,如图
项目启动报错Command line is too long. Shorten command line for ServiceStarter or also for Application_第5张图片
2.在找到标签里加入一行

好了今天就分享这些吧,希望这两个办法能帮到同学们,不要忘了加关注一起学习进步哦!!

你可能感兴趣的:(学习路上的问题,spring,boot)