类 WebConfiguration
java.lang.Object
net.sohelp.boot.engine.web.config.WebConfiguration
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@ComponentScan(basePackages="net.sohelp.boot.engine.web")
public class WebConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
WebMvc配置、拦截器、资源映射等都在此配置
Created by AaronFung on 2019-06-12 10:11
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) 添加静态资源处理器,用于处理前端资源文件的访问映射从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
构造器详细资料
-
WebConfiguration
public WebConfiguration()
-
-
方法详细资料
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) 添加静态资源处理器,用于处理前端资源文件的访问映射- 指定者:
addResourceHandlers在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer- 参数:
registry- 资源处理器注册器,用于注册资源映射规则
-