安全模块 pom补充,消除多余pom

This commit is contained in:
lizhengwei 2025-01-06 23:26:40 +08:00
parent 2b117e7dd9
commit 245cedc645
2 changed files with 10 additions and 9 deletions

View File

@ -1,16 +1,13 @@
package org.dromara.web.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.dromara.common.core.factory.YmlPropertySourceFactory;
import org.dromara.common.satoken.core.service.SaPermissionImpl;
import org.dromara.common.satoken.handler.SaTokenExceptionHandler;
import org.dromara.common.tenant.core.TenantSaTokenDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.PropertySource;
/**
@ -37,13 +34,13 @@ public class SaTokenConfig {
}
/**
* 自定义dao层存储
* 自定义dao层存储todo satoken适配多租户用目前不需要
*/
@Bean
@Primary
public SaTokenDao tenantSaTokenDao() {
return new TenantSaTokenDao();
}
// @Bean
// @Primary
// public SaTokenDao tenantSaTokenDao() {
// return new TenantSaTokenDao();
// }
/**
*

View File

@ -32,5 +32,9 @@
<groupId>org.dromara</groupId>
<artifactId>ruoyi-common-json</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
</dependencies>
</project>