【解决】Command line is too long. Shorten the command line xxx

Problem Description

Using Idea to run the project reports an error when the project starts:

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

problem analysis

This kind of exception occurs because the command to run the project is too long. When IDEA runs the code, a lot of commands are loaded. The length of these commands after splicing exceeds the maximum length of the system. When the length of your command line exceeds 32768 characters , idea will prompt you to use a shorter command line.

solution

Modify the workspace, path: .idea --> workspace.xml

Find the tag and add a line to it:

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

Guess you like

Origin blog.csdn.net/A_captain_608/article/details/129242349