Browse Source

1/18

master
wangpengfei 1 year ago
parent
commit
32afd3921c
  1. 15
      src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java

15
src/main/java/com/yxt/yythmall/config/SaTokenConfigure.java

@ -1,8 +1,8 @@
package com.yxt.yythmall.config;
import cn.dev33.satoken.interceptor.SaInterceptor;
import cn.dev33.satoken.stp.StpUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@ -11,10 +11,10 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
* @author wangpengfei
* @date 2023/5/16 14:43
*/
@Configuration
public class SaTokenConfigure implements WebMvcConfigurer {
@Value("${image.url.prefix:http://127.0.0.1:8080/upload/}")
private String urlPrefix;
// 注册 Sa-Token 拦截器
@Override
public void addInterceptors(InterceptorRegistry registry) {
@ -68,15 +68,12 @@ public class SaTokenConfigure implements WebMvcConfigurer {
.excludePathPatterns("/lpkgoods/vegeCellarTypeList")
.excludePathPatterns("/vegetablecellar/addGoods/**")
.excludePathPatterns("/lpkgoods/vegeCellarList")
.excludePathPatterns("/customerstore/getStoreBySid/**")
.excludePathPatterns("/lpkgiftcard/bindAllCard")
.excludePathPatterns("/lpkcustomer/customerInfo")
//2024-01-18
.excludePathPatterns("/lpkcustomer/getCustomerInfo/**")
.excludePathPatterns("/lpkcustomer/modifyUserNickName")
.excludePathPatterns("/lpkcustomer/modifyHeadImage")
;
.excludePathPatterns("/lpkcustomer/modifyHeadImage");
}
}

Loading…
Cancel
Save