idea运行SpringBoot项目报错-1

idea运行报错Error running 'Application': Command line is too long的解决方法:

idea启动项目直接报错,Command line is too long,有以下两种方式解决:

  1. 点击项目启动配置项 -> shorten command line 选项选择 classpath file 或 JAR manifest 选项 -> 重新启动工程运行即可


    image.png
  2. 修改项目工程里面的.idea/workspace.xml文件,找到里面<component name="PropertiesComponent"></component>标签,然后再在标签中添加一行 <property name="dynamic.classpath" value="true" />,重新启动项目即可

<component name="PropertiesComponent">
    <property name="ExpandSpringBootJavaOptionsPanel" value="true" />
    <property name="RequestMappingsPanelOrder0" value="0" />
    <property name="RequestMappingsPanelOrder1" value="1" />
    <property name="RequestMappingsPanelWidth0" value="75" />
    <property name="RequestMappingsPanelWidth1" value="75" />
    <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="dynamic.classpath" value="true" />
   
  </component> 
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容