通过实现【WebMvcConfigurer】类后,addInterceptors方法就不执行,导致拦截器不生效。 原因 原因其实很简单,因为代码中有【WebMvcConfigurationSupport】的继承类,SpringBoot会判断,如果有【WebMvcConfigurationSupport】就不会加载【WebMvcConfigurer】。 解决方案 可在【WebMvcConfigurationSupport】的实现类中重写addInterceptor...