1.打开idea配置文件,找到workspace.xml

<component name="PropertiesComponent">
    <property name="LombokPluginIS_LOMBOK_JPS_FIX_ENABLED" value="true" />
    <property name="LombokPluginIS_LOMBOK_VERSION_CHECK_Enabled" value="true" />
    <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
    <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="project.structure.last.edited" value="Libraries" />
    <property name="project.structure.proportion" value="0.0" />
    <property name="project.structure.side.proportion" value="0.3363007" />
    <property name="settings.editor.selected.configurable" value="MavenSettings" />
    <property name="vue.rearranger.settings.migration" value="true" />
  </component>

添加

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