Error running 'FlowApplication': Command line is too long. Shorten command line for FlowApplication or also for Spring Boot default configuration.

idea启动springcloud中流程模块时,报Error running 'FlowApplication': Command line is too long. Shorten command line for FlowApplication or also for Spring Boot default configuration.

原因:大多数操作系统都有最大的命令行限制,当它超过时,IDEA将无法运行您的应用程序。 

解决方法:修改项目下 .ideaworkspace.xml,找到标签 <component name="PropertiesComponent"> , 在标签里加一行  <property name="dynamic.classpath" value="true" />

解释: 选项控制如何将classpath传递给JVM:通过命令行或通过文件,当命令行长于32768个字符时,IDEA建议您切换到动态类路径--dynamic.classpath,长类路径被写入文件,然后由应用程序启动器读取并通过系统类加载器加载。

原文地址:https://www.cnblogs.com/gangzi4321/p/13426368.html