小编use*_*402的帖子

Springboot 2.2.6 中未找到 jwt 依赖项

我正在尝试在 pom.xml 中添加 jwt,但 jwt 依赖项不可用。

有没有人有同样的经历?

我将使用 Jwtbuilder 进行安全设置。

Springboot 是 2.2.6,我正在使用 Maven。

<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>co.kr.hatchfly</groupId>
<artifactId>hf</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>hf</name>
<description>hatchfly home</description>

<properties>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
    </dependency>
    <dependency>
        <groupId>io.jsonwebtoken</groupId>
        <artifactId>jjwt</artifactId>
        <version>0.9.1</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

jwt spring-boot spring-boot-maven-plugin jjwt

2
推荐指数
1
解决办法
6724
查看次数

标签 统计

jjwt ×1

jwt ×1

spring-boot ×1

spring-boot-maven-plugin ×1