|
@@ -6,11 +6,13 @@
|
|
|
package org.eco.vip.security.config;
|
|
|
|
|
|
|
|
|
+import cn.dev33.satoken.dao.SaTokenDao;
|
|
|
import cn.dev33.satoken.jwt.StpLogicJwtForSimple;
|
|
|
import cn.dev33.satoken.stp.StpInterface;
|
|
|
import cn.dev33.satoken.stp.StpLogic;
|
|
|
import org.eco.vip.orm.factory.YmlPropertySourceFactory;
|
|
|
import org.eco.vip.security.core.SaPermissionImpl;
|
|
|
+import org.eco.vip.security.core.dao.SaTokenDaoForCaffeine;
|
|
|
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.PropertySource;
|
|
@@ -39,4 +41,12 @@ public class SaTokenConfig {
|
|
|
return new SaPermissionImpl();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 自定义dao层存储
|
|
|
+ */
|
|
|
+ @Bean
|
|
|
+ public SaTokenDao saTokenDao() {
|
|
|
+ return new SaTokenDaoForCaffeine();
|
|
|
+ }
|
|
|
+
|
|
|
}
|