IDEA项目启动时报错命令行过长

  • Post author:
  • Post category:其他


报错信息:Error running ‘JoyTreasureApplication’: Command line is too long. Shorten command line for JsaasApplication or also for Spring Boot default configuration.

解决方法:

在项目的.idea文件夹下的wordspace.xml中找到下面代码

  <component name="PropertiesComponent">
    <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
    <property name="Git.Branch.Popup.ShowAllRemotes" value="true" />
    <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
    <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="aspect.path.notification.shown" value="true" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$/.." />
    <property name="project.structure.last.edited" value="SDK" />
    <property name="project.structure.proportion" value="0.0" />
    <property name="project.structure.side.proportion" value="0.2" />
    <property name="settings.editor.selected.configurable" value="reactor" />
    <property name="vue.rearranger.settings.migration" value="true" />
    <property name="dynamic.classpath" value="true" />
  </component>

在<component>标签中加上

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



版权声明:本文为fucc194125原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。