我目前正在尝试将JWT添加到我的quarkus项目中,但我遇到了一些障碍。在我的application.properties中,我设置了以下设置:
mp.jwt.verify.publickey.location=publicKey.pem
smallrye.jwt.sign.key-location = privatetestKey.pem
mp.jwt.verify.issuer=https://example.com/issuer
但现在我得到了错误:
Unknown property 'smallrye.jwt.sign.key-location'
我应该已经在pom.xml中安装了所有必要的依赖项:
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-jwt</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-jwt-build</artifactId>
</dependency>
还是我忘了什么?
发布于 2021-04-21 22:56:06
配置名称被重命名为smallrye.jwt.sign.key.location
(键和位置之间没有破折号),但我相信旧的应该仍然有效,因为它只是被弃用了。
请尝试使用新名称:https://quarkus.io/guides/security-jwt#additional-smallrye-jwt-configuration
https://stackoverflow.com/questions/66972743
复制相似问题