| | |
| | | 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 { |
| | | } |