Problem Description
Use Idea to start the SpringBoot project and report an error, and the error is Error running'DemoApplication': Command line is too long. Shorten command line for DemoApplication or also for Spring Boot default configuration.
Reason: The variable is too long and exceeds the limit (subsequent supplement)
solution
1. Directly modify the configuration parameters of the startup item (no need to restart Idea)
2. Modify the workspace.xml (one-time modification, no need to worry about it, you need to restart Idea)
Go to the root directory of the project code, find the .idea folder, open workspace.xml, open it directly, search for the keyword PropertiesComponent , and insert the code snippet
<property name="dynamic.classpath" value="true" />
Restart Idea, the perfect solution