package com.jiagutech.ams.config; import cn.dev33.satoken.jwt.StpLogicJwtForSimple; import cn.dev33.satoken.stp.StpInterface; import cn.dev33.satoken.stp.StpLogic; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * sa-token 配置 */ @Configuration public class SaTokenConfig { @Bean public StpLogic getStpLogicJwt() { // Sa-Token 整合 jwt (简单模式) return new StpLogicJwtForSimple(); } /** * 权限接口实现(使用bean注入方便用户替换) */ @Bean public StpInterface stpInterface() { return new SaPermissionImpl(); } }