spring 您所在的位置:网站首页 loadingform报错 spring

spring

2023-06-07 17:31| 来源: 网络整理| 查看: 265

spring-boot-maven-plugin爆错所有最全解决方法

以下四种解决方案基本上涵盖了报错的全部解决方案。

1.添加版本号 org.springframework.boot spring-boot-maven-plugin 2.4.2

注:如果再依赖中添加过下面这个依赖,就不是没有加版本问题,往下走看其他方法

org.springframework.boot spring-boot-starter-parent 2.5.2 2maven Seeting文件出错

找到maven安装的位置 在这里插入图片描述

把seetings.xml删掉,自己重新创建一个.xml文件加入以下代码,在这里我已经加阿里云镜像,和java配置加入(爆红的原因可能是没有用阿里云镜像下载速度过慢,或者配置文件出错,这里统一直接重置配置文件)

在这里插入代码片 maven.home}/conf/settings.xml. | | NOTE: This location can be overridden with the CLI option: | | -gs /path/to/global/settings.xml | | The sections in this sample file are intended to give you a running start at | getting the most out of your Maven installation. Where appropriate, the default | values (values used when the setting is not specified) are provided. | |--> tomcatPath} | | | ... | | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to | anything, you could just leave off the inside the activation-property. | env-dev target-env dev /path/to/tomcat/instance --> 3保证maven在idea中的配置不要出错

在这里插入图片描述

4缺少依赖

在依赖中加入

org.springframework.boot spring-boot-maven-plugin 2.5.2


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有