Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration 主要是命令行太长了,导致项目启动不成功

发布时间 2023-12-06 19:57:43作者: sunny123456

Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration 主要是命令行太长了,导致项目启动不成功

目录

一、情景再现:

二、分析原因:

三、解决方法: 

1、点击启动类编译文件:

2、修改命令行的方式,shorten command line 选项选择 JAR manifest 或者 classpath file 选项,最后apply

 3、重新启动即可,运行成功


一、情景再现:

当运行启动类时,报Command line is too long. Shorten command line for xxx or also for Spring Boot default configuration错。

二、分析原因:

主要是命令行太长了,导致项目启动不成功

三、解决方法: 

1、点击启动类编译文件:

2、修改命令行的方式,shorten command line 选项选择 JAR manifest 或者 classpath file 选项,最后apply

 3、重新启动即可,运行成功

原文链接:https://blog.csdn.net/m0_53151031/article/details/127363499