Pre Merge pull request !421 from AhYi/master
commit
9be4766ca3
@ -0,0 +1,15 @@
|
||||
package com.ruoyi.common.core.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* @Description “关闭” 数据脱敏
|
||||
* @Author AhYi
|
||||
* @Date 2025-07-07 10:23
|
||||
*/
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface NoSensitive {
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.ruoyi.system;
|
||||
|
||||
import com.ruoyi.common.security.interceptor.NoSensitiveInterceptor;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
/**
|
||||
* @Description WebMvcConfig
|
||||
* @Author AhYi
|
||||
* @Date 2025-07-07 10:46
|
||||
*/
|
||||
|
||||
@Configuration
|
||||
public class WebMvcConfig implements WebMvcConfigurer {
|
||||
|
||||
@Override
|
||||
public void addInterceptors(InterceptorRegistry registry) {
|
||||
registry.addInterceptor(new NoSensitiveInterceptor())
|
||||
.addPathPatterns("/**")
|
||||
.order(-1);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue