|
|
@ -2,20 +2,13 @@ package com.glxp.udi.admin.config.saToken;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.dev33.satoken.config.SaTokenConfig;
|
|
|
|
import cn.dev33.satoken.config.SaTokenConfig;
|
|
|
|
import cn.dev33.satoken.context.SaHolder;
|
|
|
|
import cn.dev33.satoken.context.SaHolder;
|
|
|
|
import cn.dev33.satoken.exception.NotLoginException;
|
|
|
|
|
|
|
|
import cn.dev33.satoken.exception.NotPermissionException;
|
|
|
|
|
|
|
|
import cn.dev33.satoken.filter.SaServletFilter;
|
|
|
|
import cn.dev33.satoken.filter.SaServletFilter;
|
|
|
|
import cn.dev33.satoken.router.SaRouter;
|
|
|
|
import cn.dev33.satoken.router.SaRouter;
|
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
|
import cn.dev33.satoken.util.SaResult;
|
|
|
|
import cn.dev33.satoken.util.SaResult;
|
|
|
|
import cn.hutool.http.ContentType;
|
|
|
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
|
|
|
import com.glxp.udi.admin.common.enums.ResultEnum;
|
|
|
|
|
|
|
|
import com.glxp.udi.admin.common.util.ResultVOUtils;
|
|
|
|
|
|
|
|
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.Primary;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@ -46,6 +39,7 @@ public class SaTokenConfigure {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//白名单
|
|
|
|
private final List<String> whiteList = Arrays.asList("/login", "/udiwarehouse/register/save", "udiwarehouse/register/getCheckcode");
|
|
|
|
private final List<String> whiteList = Arrays.asList("/login", "/udiwarehouse/register/save", "udiwarehouse/register/getCheckcode");
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|