JwtAuthenticationToken无法解析为类型

时间:2019-04-17 05:21:47

标签: spring security

我尝试添加以下依赖项。

我更新了右键单击的maven Update项目
 我清理构建
 我删除了所有jar,maven依赖项并再次下载。但是无法解决与JwtAuthenticationToken和JwtTokenMissingException相关的问题。 它仍然显示:

  

JwtTokenMissingException无法解析为类型
  JwtAuthenticationToken无法解析为类型

    <dependencies>
            <dependency>
                <groupId>org.springframework.security.oauth2</groupId>
                <artifactId>spring-security-oauth2</artifactId>
                <version>2.3.3.RELEASE</version>
            </dependency>

            <dependency>
                <groupId>io.jsonwebtoken</groupId>
                <artifactId>jjwt</artifactId>
                <version>0.6.0</version>
            </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-jwt</artifactId>
        <version>1.0.4.RELEASE</version>
    </dependency>

             <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-core</artifactId>
                <version>5.0.0.RELEASE</version>
             </dependency>




            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>4.1.6.RELEASE</version>
            </dependency>

            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-aop</artifactId>
                <version>4.1.6.RELEASE</version>
            </dependency>

            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>4.1.6.RELEASE</version>
            </dependency>

            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>4.1.6.RELEASE</version>
            </dependency>
    </dependencies>

0 个答案:

没有答案