spring boot + spring security + jwt实现

第一步:加载依赖 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> <version>0.9.1</version> </dependency> 第二步:配置jwt失效时间等信息  jwt: secret: secret expiration: 7200000
相关文章
相关标签/搜索