首页 > 解决方案 > 我找不到代码示例的 Maven 依赖项: Keys.hmacShaKeyFor(...);

问题描述

我想获得此代码示例的 Maven 依赖关系:

Keys.hmacShaKeyFor(signingKeySecret.getBytes());

通常我应该处于这种依赖状态,但它似乎不存在:

<dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt</artifactId>
            <version>0.9.1</version>
</dependency>

有谁知道它在哪里?

谢谢

标签: springmavensecurityjwtkey

解决方案


它是一部分jjwt-impl

<dependency>
    <groupId>io.jsonwebtoken</groupId>
    <artifactId>jjwt-impl</artifactId>
    <version>0.11.2</version>
</dependency>

推荐阅读