新项目再Idea里面启动的时候(),有的时候报错Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default configuration,报错信息如下所示
怎么解决呢,首先找到项目里面的idea/workspace.xml文件,然后再找到<component name="PropertiesComponent"></component >标签,标签如下所示
然后再在component 标签里加一行 <property name="dynamic.classpath" value="true" />,就是变成下面这样
我的是因为junit时候报这个错误:IDEA ,执行TEST Command line is too long,因此按下图加配置然后启动项目工程时候也报这个错,所以按以下图配置就可以了。
打开程序的运行配置,把Shorten command line改为JAR manifest或classpath file,如图所示:
当 IntelliJ IDEA 启动应用或测试时遇到'Commandline istoo long'错误,可以通过修改workspace.xml文件和运行配置来解决。在 workspace.xml 中添加特定属性,并将运行配置的'Shorten command line'设置为'JAR manifest'或'classpath file',即可缩短命令行长度,避免报错。


5737

被折叠的 条评论
为什么被折叠?



