2021
04-27
04-27
SpringBoot集成Spring security JWT实现接口权限认证
1、添加依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-security</artifactId></dependency><dependency><groupId>io.jsonwebtoken</groupId><artifactId>jjwt</artifactId><version>0.9.1</version></dependency>2、集成JWT工具类(JwtUtils)packagecom.dreamteam.chdapp.utils;importio.jsonwebtoken.Jwts;importio.jsonwebtoken.SignatureAlgorithm;impor...
继续阅读 >