项目包名太长,导致项目启动时报错,这时在项目根目录.idea目录下的workspace.xml中添加 <property name="dynamic.classpath" value="true" />
即可
Error running 'XXXApplication': Command line is too long. Shorten command
line for XXXApplication or also for Spring Boot default configuration.
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" />
<property name="dynamic.classpath" value="true" />
</component>