问题背景
IDEA在启动项目时,突然报错,提示命令行太长;这个bug真的难受啊
Error running 'BuyerApplication':
Command line is too long. Shorten command line for BuyerApplication or also for Spring Boot default configuration?

解决方法
遇到这个问题搜了一下记录下来,以防再遇到类似的;
首先打开启动配置项 →点击
Edit Configurations

显示弹窗,点击
Environment
,选择
Shorten command line下拉框
,选择
JAR manifest
,点击OK确认

再启动项目就可正常运行了。
当IDEA启动SpringBoot项目时遇到命令行过长的错误,可以按照以下步骤解决:进入编辑配置(EditConfigurations)->点击Environment->选择Shortencommandline下拉框->选择JARmanifest,然后确认。这将允许项目正常启动。
2753

被折叠的 条评论
为什么被折叠?



