我想获取此代码示例的 Maven 依赖关系:
Keys.hmacShaKeyFor(signingKeySecret.getBytes());
通常我应该处于这种依赖关系中,但它似乎不存在:
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
有人知道它在哪里吗?
谢谢你
它是
jjwt-impl
的一部分
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.2</version>
</dependency>
我也有同样的问题。我有 jjwt-impl 0.11.5 版本,但仍然无法工作。
Keys
没有给我 jjwt-impl 的任何选项。
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.5</version>
<scope>runtime</scope>
</dependency>