在使用IntelliJ IDEA工具开发项目,启动时报 “Command line is too long. Shorten command line for TestWebApp or also for Spring Boot default configuration.” 的错误

如下图:

Command line is too long. Shorten command line for TestWebApp or also for Spring Boot default configuration._IDEA

 

 

 处理方式:

  1、右上角点击选择

Command line is too long. Shorten command line for TestWebApp or also for Spring Boot default configuration._spring_02

 

   2、打开后, Configuration -> Environment -> Shorten command line 选项中选中 “ JAR manifest ” 

Command line is too long. Shorten command line for TestWebApp or also for Spring Boot default configuration._IDEA_03

 

 

 

修改OK后,可正常启动。