类 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
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    addResourceHandlers(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 - 资源处理器注册器,用于注册资源映射规则