SpringBoot项目启动报错:Command line is too long. Shorten command line for WebApplication...

2023-05-16

错误描述

spring工程启动时,下方报错Error running 'WebApplication': Command line is too long. Shorten command line for WebApplication or also for Spring Boot default configuration

解决办法

报错的翻译信息大概是指什么启动的命令行太长,所以无法启动
在这里插入图片描述

不是很能理解,不过根据给出的提示,可以去设置项目中的配置来调整命令行

1.打开项目设置

在这里插入图片描述

2.调整配置

将我们的user-loca default:none改为JAR manifest
在这里插入图片描述

3. 保险起见,我们重写install一下我们的项目

在这里插入图片描述

重写启动项目测试
成功
在这里插入图片描述

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

SpringBoot项目启动报错:Command line is too long. Shorten command line for WebApplication... 的相关文章

随机推荐