feiyu02
2026-01-21 fe031e01cc1737c2f05a133fde7c36c7a2a7b4b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package cn.flightfeather.supervision.config
 
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
 
/**
 * web配置
 */
//@Configuration
class WebMvcConfig : WebMvcConfigurer {
 
    override fun addInterceptors(registry: InterceptorRegistry) {
        super.addInterceptors(registry)
        // 添加自定义拦截器
        registry.addInterceptor(FFInterceptor())
    }
}