Parcourir la source

jwt注释修改

macro il y a 6 ans
Parent
commit
7dd91bc616

+ 1 - 1
mall-admin/src/main/java/com/macro/mall/util/JwtTokenUtil.java

@@ -19,7 +19,7 @@ import java.util.Map;
  * payload的格式(用户名、创建时间、生成时间):
  * {"sub":"wang","created":1489079981393,"exp":1489684781}
  * signature的生成算法:
- * HMACSHA256(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret)
+ * HMACSHA512(base64UrlEncode(header) + "." +base64UrlEncode(payload),secret)
  * Created by macro on 2018/4/26.
  */
 @Component