hexiao hace 2 años
padre
commit
0359989de6

+ 4 - 4
base-common/src/main/java/com/ozs/common/utils/AppTokenUtils.java

@@ -23,17 +23,17 @@ public class AppTokenUtils {
 
     @Autowired
     private RedisCache redisCache;
-    
+
     // app令牌自定义标识
-    @Value("${apptoken.header}")
+    @Value("${apptoken.header:app}")
     private String appHeader;
 
     // app令牌秘钥
-    @Value("${apptoken.secret}")
+    @Value("${apptoken.secret:secret}")
     private String appSecret;
 
     // app令牌有效期(默认15天)
-    @Value("${apptoken.expireTime}")
+    @Value("${apptoken.expireTime:1000}")
     private int appExpireTime;
 
     protected static final long MILLIS_SECOND = 1000;