我是靠谱客的博主 真实烧鹅,这篇文章主要介绍idea编译springboot项目失败,现在分享给大家,希望可以做个参考。

问题:在启动springboot项目时,在编译阶段失败:

Error 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行处找到这个标签,如果找不到请搜索 即可


<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>

在标签里面插入一行标签

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

修改之后的标签


<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项目失败内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部