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