类 WebMvcConfig

java.lang.Object
com.sh.spring.configuration.WebMvcConfig
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration public class WebMvcConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    void
    addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
     
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    void
    configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> resolvers)
     
     
    org.springframework.boot.web.servlet.ServletContextInitializer
    在进行URL Rewriting时,不在url后添加:;jsessionid=xxx

    从类继承的方法 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, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
  • 构造器详细资料

    • WebMvcConfig

      public WebMvcConfig()
  • 方法详细资料

    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      指定者:
      addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • getSHSpringInterceptor

      @Bean public SHSpringInterceptor getSHSpringInterceptor()
    • addInterceptors

      public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
      指定者:
      addInterceptors 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • configureHandlerExceptionResolvers

      public void configureHandlerExceptionResolvers(List<org.springframework.web.servlet.HandlerExceptionResolver> resolvers)
      指定者:
      configureHandlerExceptionResolvers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • servletContextInitializer

      @Bean public org.springframework.boot.web.servlet.ServletContextInitializer servletContextInitializer()
      在进行URL Rewriting时,不在url后添加:;jsessionid=xxx
      返回:
      ServletContextInitializer