使用idea启动项目时,报错: Error running ‘类名’: Command line is too long. Shorten command line for 类名 or also for Application default configuration. 解决方法: 找到项目所在目录,修改项目目录下 .idea 文件夹的 workspace.xml 文件: 找到标签: <component name="PropertiesComponent"> 在标签里添加: <property name="dynamic.classpath" value="true" />