From 9ed60f22de26f724e68f89d30f2db9eef2c5d652 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 14 十二月 2022 14:28:11 +0800 Subject: [PATCH] update 优化 minio安装警告 使用新版本参数 --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java index f4e2b5f..ea83338 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java @@ -1,7 +1,6 @@ package com.ruoyi.framework.config; -import com.ruoyi.framework.Interceptor.PlusWebInvokeTimeInterceptor; -import com.yomahub.tlog.web.interceptor.TLogWebInterceptor; +import com.ruoyi.framework.interceptor.PlusWebInvokeTimeInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.cors.CorsConfiguration; @@ -20,15 +19,13 @@ public class ResourcesConfig implements WebMvcConfigurer { @Override - public void addResourceHandlers(ResourceHandlerRegistry registry) { + public void addInterceptors(InterceptorRegistry registry) { + // 鍏ㄥ眬璁块棶鎬ц兘鎷︽埅 + registry.addInterceptor(new PlusWebInvokeTimeInterceptor()); } @Override - public void addInterceptors(InterceptorRegistry registry) { - // 鍏ㄥ眬閾捐矾璺熻釜鎷︽埅鍣� - registry.addInterceptor(new TLogWebInterceptor()); - // 鍏ㄥ眬璁块棶鎬ц兘鎷︽埅 - registry.addInterceptor(new PlusWebInvokeTimeInterceptor()); + public void addResourceHandlers(ResourceHandlerRegistry registry) { } /** @@ -52,4 +49,4 @@ // 杩斿洖鏂扮殑CorsFilter return new CorsFilter(source); } -} \ No newline at end of file +} -- Gitblit v1.9.3