问题:在启动springboot项目时,在编译阶段失败:
复制代码
1
2Error running 'CsjBussinessApplication': Command line is too long. Shorten command line for CsjBussinessApplication or also for Spring Boot default configuration.
在网上查询资料发现是workspace.xml文件的问题
解决办法是:找到项目里面的idea/workspace.xml文件,在文件的大约29行处找到这个标签,如果找不到请搜索 即可
复制代码
1
2
3
4
5
6
7
8
9
10
11<component name="PropertiesComponent"> <property name="WebServerToolWindowFactoryState" value="false" /> <property name="aspect.path.notification.shown" value="true" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/../../../../csj/xiaomifeng/houduan" /> <property name="project.structure.last.edited" value="Project" /> <property name="project.structure.proportion" value="0.0" /> <property name="project.structure.side.proportion" value="0.0" /> <property name="settings.editor.selected.configurable" value="MavenSettings" /> </component>
在标签里面插入一行标签
复制代码
1
2<property name="dynamic.classpath" value="true" />
修改之后的标签
复制代码
1
2
3
4
5
6
7
8
9
10
11
12<component name="PropertiesComponent"> <property name="dynamic.classpath" value="true" /> <property name="WebServerToolWindowFactoryState" value="false" /> <property name="aspect.path.notification.shown" value="true" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/../../../../csj/xiaomifeng/houduan" /> <property name="project.structure.last.edited" value="Project" /> <property name="project.structure.proportion" value="0.0" /> <property name="project.structure.side.proportion" value="0.0" /> <property name="settings.editor.selected.configurable" value="MavenSettings" /> </component>
启动springboot项目,正常运行
最后
以上就是真实烧鹅最近收集整理的关于idea编译springboot项目失败的全部内容,更多相关idea编译springboot项目失败内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复