小编Arp*_*tra的帖子

找不到依赖项“org.springframework.boot:spring-boot-starter-security:2.2.6.RELEASE”

我是 Spring 的新手,所以如果你们中有人能在这方面帮助我,我将非常感激。我正在添加 spring-boot-starter-security 的依赖项,当前版本为 2.2.6.RELEASE,我的父母也有相同的版本。但仍然出现错误-

未找到依赖项 'org.springframework.boot:spring-boot-starter-security:2.2.6.RELEASE' 标签名称:artifactId 描述:项目组生成的工件的唯一 ID,例如 maven-artifact。版本:3.0.0+ *

**如果有任何错误,请提前致歉!**

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">*


    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.6.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.arpita</groupId>
    <artifactId>security_first</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>security_first</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>11</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-security -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
            <version>2.2.6.RELEASE</version>
        </dependency>

Run Code Online (Sandbox Code Playgroud)

java spring maven spring-boot

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

java ×1

maven ×1

spring ×1

spring-boot ×1