类 WebConfig

java.lang.Object
org.hy.microservice.common.WebConfig
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration public class WebConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
WebConfig:服务Web配置
版本:
v1.0
作者:
ZhengWei(HY)
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
    添加拦截器
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry i_Registry)
    添加静态资源

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    addArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • 构造器详细资料

    • WebConfig

      public WebConfig()
  • 方法详细资料

    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      添加拦截器
      指定者:
      addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      参数:
      registry -
      另请参阅:
      • WebMvcConfigurer.addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry)
    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry i_Registry)
      添加静态资源
      指定者:
      addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      参数:
      i_Registry -
      另请参阅:
      • WebMvcConfigurer.addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry)