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

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

 

 

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

1、打开项目配置:

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

 

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

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

 

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

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

 

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

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

 

相关文章:

  • 2021-09-17
  • 2021-09-17
  • 2021-12-03
  • 2021-12-14
  • 2021-09-17
  • 2021-11-03
  • 2021-11-20
  • 2021-09-17
猜你喜欢
  • 2020-07-18
  • 2021-11-03
  • 2021-09-17
  • 2021-09-18
  • 2021-08-26
  • 2021-09-07
  • 2018-09-28
相关资源
相似解决方案