类 DevWebConfiguration

java.lang.Object
net.sohelp.boot.dev.web.config.DevWebConfiguration
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @ConditionalOnProperty(prefix="sohelp-boot.dev", name="enabled", havingValue="true", matchIfMissing=true) @ComponentScan(basePackages="net.sohelp.boot.dev.web") public class DevWebConfiguration extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
开发平台Web配置类
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
    重写addResourceHandlers方法,用于配置静态资源的映射路径。
    void
    addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry viewControllerRegistry)
    重写addViewControllers方法,用于向ViewControllerRegistry注册视图控制器

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

    • DevWebConfiguration

      public DevWebConfiguration()
  • 方法详细资料

    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      重写addResourceHandlers方法,用于配置静态资源的映射路径。
      指定者:
      addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      参数:
      registry - ResourceHandlerRegistry对象,用于注册静态资源的处理规则。
    • addViewControllers

      public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry viewControllerRegistry)
      重写addViewControllers方法,用于向ViewControllerRegistry注册视图控制器
      指定者:
      addViewControllers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      参数:
      viewControllerRegistry - 视图控制器注册表