Interface WebMvcConfigurer 简介

文档地址 https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.html

Interface WebMvcConfigurer

public interface WebMvcConfigurer

定义回调方法,用于自定义通过 @EnableWebMvc 启用的 Spring MVC 的 Java 配置。
Defines callback methods to customize the Java-based configuration for Spring MVC enabled via @EnableWebMvc.

带有 @EnableWebMvc 注解的配置类可以实现此接口,以便回调并自定义默认配置
@EnableWebMvc-annotated configuration classes may implement this interface to be called back and given a chance to customize the default configuration.

posted @ 2025-04-12 18:30  kuki'  阅读(14)  评论(0)    收藏  举报