Error running ‘application’ in idea: command line is too long Shorten command line for Application or also for Spring Boot default configuration
Problem background solution 1 (current project settings) solution 2 (global settings)
Lyric: I can’t go to a good school
Command line is too long. Shorten command line for Application or also for Spring Boot default configuration)
Problem background
When idea starts the project, it suddenly reports an error
Error running 'Application':
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration.
Solution:
Method 1 (current project settings)
1 click Edit configurations
in the run drop-down box of the current project. 2 Click environment, select the short command line drop-down box, select classpath file or jar manifest, and click OK to confirm

Method 2 (global setting)
1. Since scheme 1 is the current project setting and other projects are not opened, you can set the global. Click file → new projects settings → run configuration templates for new projects
2. Click springboot project. Other projects are the same as scheme 1
Read More:
- Project Startup Error: Error running ‘xxxApplication‘;Command line is too long, Shoerten command line for……..
- IDEA Error: Command line is too long [How to Solve]
- [Solved] IDEA Start Project Error: Error running ‘xxxxxx‘: Command line is too long. Shorten command line for …..
- [Solved] Command line is too long. Shorten command line for XXXXXXXTest.rmLogRecordOver Error running
- [Solved] Error running ‘ServiceStarter’: Command line is too long. Shorten command line for ServiceStarter or also for Application default configuration
- Springboot Files Upload Limit Error: The field file exceeds its maximum permitted size of 1048576 bytes
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- Eclipse relies on spring boot configuration processor, and there is no prompt for writing properties and YML
- [Solved] Failed to bind properties under ‘spring.servlet.multipart.file-size-threshold‘ to
- Spring boot real time HTML page
- springcloud alibaba Integrating nacos reports errors: create config service error!properties=NacosConfigPropertie
- [Solved] SpringBoot Error: This application has no explicit mapping for /error,so you are seeing this as a fallback
- Spring Boot Error starting ApplicationContext. To display the auto-configuration report re-run you
- Error creating bean with name [How to Solve]
- [Maven] maven filtering OTS parsing error incorrect file size in WOFF head [Two Methods to Solve]
- How to Solve IDEA @Autowired Error
- How to Solve Springboot YML configurate logging.level error
- Springcloud builds a gateway and starts Error [Solved]
- spring cloud 2020 gateway Error 503 [How to Solve]