解决Intellij IDEA 编译运行时出现Error running xxxApplication Command line is too long


Idea在编译项目的时候报错,保存信息如下:

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

 

 

 

解决方法1

在本项目文件夹.idea/workspace.xml中找到

<component name="PropertiesComponent">

  ...

</component>

然后在其中添加一行属性即可解决:

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

解决方法2

打开程序的运行配置,把Shorten command line改为JAR manifestclasspath file,如图所示:

 

 

 

 

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM