Kaynağa Gözat

rest授权校验使用jwt,并联合服务端验证

zhouchenglin 6 yıl önce
ebeveyn
işleme
0b5d6e6f3d

+ 2 - 2
src/test/java/net/chenlin/dp/common/utils/JwtUtilsTest.java

@@ -48,8 +48,8 @@ public class JwtUtilsTest {
         Assert.assertEquals(jwtUserId, userId);
 
         // 混淆密钥
-        String jwtRadomKey = jwtUtils.getMd5Key(token);
-        Assert.assertEquals(jwtRadomKey, randomKey);
+        String jwtRandomKey = jwtUtils.getMd5Key(token);
+        Assert.assertEquals(jwtRandomKey, randomKey);
 
     }