您现在的位置是:首页 > 电脑 > 

IDEA报错Error running ‘Application‘: Command line is too long解决方案

2025-07-17 02:15:46
IDEA报错Error running Application : Command line is too long.Shorten command line for Application or also for Spring Boot default configuration

IDEA报错Error running Application : Command line is too long.Shorten command line for Application or also for Spring Boot default configuration
  • 问题背景
  • 解决方案
    • 方案一(当前项目设置)
    • 方案二(全局设置)
  • 心得
  • Lyric:考不上的好学校

Command line is too long.Shorten command line for Application or also for Spring Boot default configuration)

问题背景

IDEA在启动项目时,突然报错

Error running 	Application	:
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration.

解决方案

方案一(当前项目设置)

1 当前项目点击运行下拉框的Edit Configurati

2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击OK确认

main函数也会出现相同的问题,点开Edit编辑

4 点击Modify opti,选择Shorten command line

5 更改为classpath file

方案二(全局设置)

1 由于方案一是当前项目设置,其他项目打开又没有了,所以可以设置全局,点击File→ew Projects Settings→Run Configuration Templates for ew Projects

2 点击springboot项目,其他跟方案一相同

心得

  • 出现莫名其妙的错误就很蓝瘦




作为程序员第 7 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha …

Lyric:考不上的好学校

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/diannao/509894.html

相关标签:无
上传时间: 2023-06-23 08:13:17
留言与评论(共有 17 条评论)
本站网友 名门华都
18分钟前 发表
IDEA报错Error running Application
本站网友 观看警示教育片
2分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration. 解决方案 方案一(当前项目设置) 1 当前项目点击运行下拉框的Edit Configurati 2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击OK确认 main函数也会出现相同的问题,点开Edit编辑 4 点击Modify opti,选择Shorten command line 5 更改为classpath file 方案二(全局设置) 1 由于方案一是当前项目设置,其他项目打开又没有了,所以可以设置全局,点击File→ew Projects Settings→Run Configuration Templates for ew Projects 2 点击springboot项目,其他跟方案一相同 心得 出现莫名其妙的错误就很蓝瘦 作为程序员第 7 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha … Lyric:考不上的好学校
本站网友 海港大酒楼
9分钟前 发表
IDEA报错Error running Application
本站网友 中国城市排名
30分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration. 解决方案 方案一(当前项目设置) 1 当前项目点击运行下拉框的Edit Configurati 2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击OK确认 main函数也会出现相同的问题,点开Edit编辑 4 点击Modify opti,选择Shorten command line 5 更改为classpath file 方案二(全局设置) 1 由于方案一是当前项目设置,其他项目打开又没有了,所以可以设置全局,点击File→ew Projects Settings→Run Configuration Templates for ew Projects 2 点击springboot项目,其他跟方案一相同 心得 出现莫名其妙的错误就很蓝瘦 作为程序员第 7 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha … Lyric:考不上的好学校
本站网友 盐酸二甲双胍片
7分钟前 发表
IDEA报错Error running Application
本站网友 房屋装修图片
15分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration. 解决方案 方案一(当前项目设置) 1 当前项目点击运行下拉框的Edit Configurati 2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击OK确认 main函数也会出现相同的问题,点开Edit编辑 4 点击Modify opti,选择Shorten command line 5 更改为classpath file 方案二(全局设置) 1 由于方案一是当前项目设置,其他项目打开又没有了,所以可以设置全局,点击File→ew Projects Settings→Run Configuration Templates for ew Projects 2 点击springboot项目,其他跟方案一相同 心得 出现莫名其妙的错误就很蓝瘦 作为程序员第 7 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha … Lyric:考不上的好学校
本站网友 陈晓吧
30分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration. 解决方案 方案一(当前项目设置) 1 当前项目点击运行下拉框的Edit Configurati 2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击OK确认 main函数也会出现相同的问题,点开Edit编辑 4 点击Modify opti,选择Shorten command line 5 更改为classpath file 方案二(全局设置) 1 由于方案一是当前项目设置,其他项目打开又没有了,所以可以设置全局,点击File→ew Projects Settings→Run Configuration Templates for ew Projects 2 点击springboot项目,其他跟方案一相同 心得 出现莫名其妙的错误就很蓝瘦 作为程序员第 7 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha … Lyric:考不上的好学校
本站网友 变频空调真的省电吗
12分钟前 发表
IDEA报错Error running Application
本站网友 如何让头发浓密
12分钟前 发表
IDEA报错Error running Application
本站网友 外科医生收入
1分钟前 发表
IDEA报错Error running Application
本站网友 广州酒店预订
22分钟前 发表
IDEA报错Error running Application
本站网友 南京各小区房价
6分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration 问题背景解决方案方案一(当前项目设置)方案二(全局设置) 心得Lyric:考不上的好学校 Command line is too long.Shorten command line for Application or also for Spring Boot default configuration) 问题背景 IDEA在启动项目时,突然报错 Error running Application
本站网友 君太百货
12分钟前 发表
IDEA报错Error running Application
本站网友 神堂峪自然风景区
11分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration. 解决方案 方案一(当前项目设置) 1 当前项目点击运行下拉框的Edit Configurati 2 点击Environment,选择Shorten command line下拉框,选择classpath file或者JAR manifest,点击OK确认 main函数也会出现相同的问题,点开Edit编辑 4 点击Modify opti,选择Shorten command line 5 更改为classpath file 方案二(全局设置) 1 由于方案一是当前项目设置,其他项目打开又没有了,所以可以设置全局,点击File→ew Projects Settings→Run Configuration Templates for ew Projects 2 点击springboot项目,其他跟方案一相同 心得 出现莫名其妙的错误就很蓝瘦 作为程序员第 7 篇文章,每次写一句歌词记录一下,看看人生有几首歌的时间,wahahaha … Lyric:考不上的好学校
本站网友 枫华紫园
4分钟前 发表
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration 问题背景解决方案方案一(当前项目设置)方案二(全局设置) 心得Lyric:考不上的好学校 Command line is too long.Shorten command line for Application or also for Spring Boot default configuration) 问题背景 IDEA在启动项目时,突然报错 Error running Application
本站网友 祛除皱纹
0秒前 发表
IDEA报错Error running Application