java - 更正应用程序的类路径,使其包含一个兼容的 io.jsonwebtoken.lang.Classes 版本
问题描述
我的Springboot-application
. 我按照这个人的指示
https://www.youtube.com/watch?v=NQmYdwQnenQ。
但现在我已经尝试了我所知道的一切。我认为问题隐藏在 pom.xml 中,但我找不到任何东西。
谁能告诉我问题出在哪里,我该如何解决?
github:https ://github.com/FaSe22/Blog/tree/ben
这是错误日志: https ://ibb.co/VLzvn0T
这是 pom.xml:
<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.4.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.sebastianBen</groupId>
<artifactId>blogProject</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>blogProject</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-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-jwt</artifactId>
<version>1.1.1.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt -->
<!-- <dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.2</version>
</dependency> -->
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
<name>JSON Web Token support for the JVM</name>
<packaging>jar</packaging>
<url>https://github.com/jwtk/jjwt</url>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<scope>runtime</scope>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<scope>runtime</scope>
<version>0.10.5</version>
</dependency>
<!-- <dependency>
<groupId>io.jsonwebtoken</groupId>
<scope>runtime</scope>
<artifactId>jjwt-api</artifactId>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<scope>runtime</scope>
<artifactId>jjwt-impl</artifactId>
<version>0.10.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<scope>runtime</scope>
<artifactId>jjwt-jackson</artifactId>
<version>0.10.5</version>
</dependency>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
解决方案
推荐阅读
- google-cloud-platform - 由于缺少权限,无法启用 Cloud Build API(或任何其他)。但是什么角色包含所需的权限?
- html - 有没有办法强制行跨度做我想做的事?
- flask - 使用带有气流网络服务器 2.1.1 的 keycloak 时出现“authlib.integrations.base_client.errors.MismatchingStateError”错误
- python - 悬停数据未显示在绘图图中
- javascript - 模板字符串中未调用的函数
- regex - 重复匹配组时,某些捕获组似乎丢失了
- android - 严格的安全 Cookie 政策不允许为 http://googleads.g.doubleclick.net/ 为定位 >= R 的应用设置安全 Cookie。如何解决?
- python - selenium 从 instagram 设置中抓取请求列表的问题
- android - 如何在不点击 android 中的 fcm 通知的情况下打开活动
- android - openfire ReconnectionManager java.lang.IllegalStateException