解决 Error running ‘Application‘: Command line is too long.

发布时间 2023-04-18 12:00:30作者: 翘中之楚

一、项目场景:
运行刚拉取下来的项目代码,出现下面问题描述的错误提示。

二、问题描述
Error running 'Application': Command line is too long. Shorten command line for Application or also for Spring Boot default configuration?

翻译翻译:
运行“Application”时出错:命令行太长。缩短应用程序或Spring Boot默认配置的命令行?

三、原因分析:
springboot项目启动命令过长!

四、解决方案:

解决步骤:

  1. 点击项目启动配置项
  2. shorten command line 选项选择 JAR manifest 或者 classpath file 选项
  3. 重新启动工程运行即可

Step1:点击项目启动配置项

 Step2: shorten command line 选项选择 JAR manifest 或者 classpath file 选项