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

View File

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