类 FileWebConfig

java.lang.Object
com.iplatform.core.PlatformConfiguration
com.iplatform.file.config.FileWebConfig
所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration public class FileWebConfig extends com.iplatform.core.PlatformConfiguration implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
专门为本地文件能被web访问的映射配置。

注意:该配置仅针对本地文件,其他FTP或OSS方式请通过第三方链接访问文件。

作者:
时克英
  • 字段概要

    从类继承的字段 com.iplatform.core.PlatformConfiguration

    logger
  • 构造器概要

    构造器
    构造器
    说明
    FileWebConfig(FileProperties fileProperties)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
    添加文件浏览映射,如:file:D://images/

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

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

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

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

    • FileWebConfig

      @Autowired public FileWebConfig(FileProperties fileProperties)
  • 方法详细资料

    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      添加文件浏览映射,如:file:D://images/
      指定者:
      addResourceHandlers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      参数:
      registry -