Solution to Idea Error running 'Application': Command line is too long

created at 01-08-2022 views: 10


When a new project is started in Idea, sometimes an error is reported

Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default configuration,


How to solve it, first find the idea/workspace.xml file in the project, and then find the <component name="PropertiesComponent"></component > tag, the tag is as follows


Then add a line <property name="dynamic.classpath" value="true" /> to the component tag, it becomes the following


In this way, when starting the project, no error will be reported, ؏؏☝ᖗ乛◡乛ᖘ☝؏؏

created at:01-08-2022
edited at: 01-08-2022: