java 项目启动异常 Command line is too long. Shorten command line for xxxApplication or also for Spring Boot default configuration.


java spring 项目启动时报错:Command line is too long. Shorten command line for xxxApplication or also for Spring Boot default configuration. 

 

 

这是命令行长度造成的错误,可以通过修改项目的命令行启动方式来解决:

1、打开项目配置:

 

2、在打开的配置窗口中选中启动时报错的项目:

 

 

3、将项目的 Shorten command line 修改为 classpath file

 

 

 4、点击 OK 按钮,保存设置

 5、重新启动项目,此时项目可以正常启动

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM