Error running ‘XXXApplication‘: Command line is too long. Shorten command line forXXX

method one

An error occurred while running a SpirngBoot project:
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX

Error running 'XXXApplication': Command line is too long. Shorten command line forXXXApplication

Indicates that the name is too long, just modify the workspace.xml file in the idea folder

<component name="PropertiesComponent">
    ...
</component>

Search for the above label by ctrl+F, add a line of code in the label

<property name="dynamic.classpath" value="true" />

Method Two

Step1: Click the project startup configuration item
Step2: Shorten command line option select JAR manifest or classpath file option

Guess you like

Origin blog.csdn.net/m0_49382941/article/details/128933942