From bc68f4393cafe39c4fce614c8128936067ea25f7 Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期二, 22 九月 2026 17:18:17 +0800
Subject: [PATCH] bug:登录问题和操作日志
---
cloud-server-other/src/main/java/com/dsh/other/audit/AccountAuditWebConfig.java | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/cloud-server-other/src/main/java/com/dsh/other/audit/AccountAuditWebConfig.java b/cloud-server-other/src/main/java/com/dsh/other/audit/AccountAuditWebConfig.java
index b2fd235..b9362ca 100644
--- a/cloud-server-other/src/main/java/com/dsh/other/audit/AccountAuditWebConfig.java
+++ b/cloud-server-other/src/main/java/com/dsh/other/audit/AccountAuditWebConfig.java
@@ -1,13 +1,11 @@
package com.dsh.other.audit;
import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-import javax.annotation.Resource;
-
+/**
+ * 审计由网关的外部请求及管理端的业务注解统一产生。
+ * 不再在 other 服务拦截全部 HTTP 请求,否则管理端 Feign 调用会被误记为用户操作。
+ */
@Configuration
-public class AccountAuditWebConfig implements WebMvcConfigurer {
- @Resource private AccountAuditInterceptor accountAuditInterceptor;
- @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(accountAuditInterceptor).addPathPatterns("/**"); }
+public class AccountAuditWebConfig {
}
--
Gitblit v1.7.1