Administrator 3 years ago
parent
commit
c859ef8d1a

+ 1 - 3
src/main/java/com/xiesx/fastboot/core/token/JwtHelper.java

@@ -7,11 +7,10 @@ import java.util.UUID;
 import javax.crypto.SecretKey;
 import javax.crypto.SecretKey;
 import javax.crypto.spec.SecretKeySpec;
 import javax.crypto.spec.SecretKeySpec;
 
 
+import com.xiesx.fastboot.utils.DateUtils;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.lang3.ObjectUtils;
 import org.apache.commons.lang3.ObjectUtils;
 
 
-import com.google.common.collect.Maps;
-import com.xiesx.fastboot.utils.DateUtils;
 
 
 import io.jsonwebtoken.*;
 import io.jsonwebtoken.*;
 
 
@@ -112,7 +111,6 @@ public class JwtHelper {
     /**
     /**
      * 过期
      * 过期
      *
      *
-     * @param token
      * @return
      * @return
      */
      */
     public static boolean isExpired(Date expiration) {
     public static boolean isExpired(Date expiration) {

+ 1 - 1
src/main/java/com/xiesx/fastboot/utils/DateUtils.java

@@ -95,7 +95,7 @@ public class DateUtils {
      * @return parrten
      * @return parrten
      */
      */
     public static String getPointTimePattern(Integer year, Integer month, Integer day, Integer hour, Integer minute, Integer seconds,
     public static String getPointTimePattern(Integer year, Integer month, Integer day, Integer hour, Integer minute, Integer seconds,
-            String parrten) {
+                                             String parrten) {
         DateTime dt = new DateTime(year, month, day, hour, minute, seconds);
         DateTime dt = new DateTime(year, month, day, hour, minute, seconds);
         String date = dt.toString(parrten);
         String date = dt.toString(parrten);
         return date;
         return date;