idea启动项目时抛出错误信息Error running 'XXXApplication' Error running XXXApplication. Command line is too long. Shorten the command line and rerun.

很多新手小白在启动项目时会出现下面问题,不知道怎么办

出现的问题:启动项目时抛出下图错误提示:Error running 'XXXApplication' Error running XXXApplication. Command line is too long. Shorten the command line and rerun.

 解决办法:

1、直接点击下图位置,进入Edit Run Configuration:‘XXX’

2、点击Mondify options -> 勾选Shorten command line -> 然后点击Shorten command line下拉框选择JAR ->  点击ok后就可以启动运行了

 

其他方式进入Edit Run Configuration:

1、在服务列表右键点击启动类打开

 2、idea右上角点击下拉框

 注意这两种打开方式需要选择启动项目如下

 

posted @ 2024-04-28 11:45  llili  阅读(52)  评论(0编辑  收藏  举报