Class ZlmWebConfig

java.lang.Object
io.github.lunasaw.zlm.config.ZlmWebConfig
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration @ConditionalOnProperty(value="zlm.enable", havingValue="true") public class ZlmWebConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
ZLM Web配置 用于配置静态资源映射,支持截图文件访问
Version:
1.0
Author:
luna
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    static String
    获取临时截图目录路径

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface 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
  • Constructor Details

    • ZlmWebConfig

      public ZlmWebConfig()
  • Method Details

    • addResourceHandlers

      public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
      Specified by:
      addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    • getTempSnapshotPath

      public static String getTempSnapshotPath()
      获取临时截图目录路径
      Returns:
      临时截图目录路径,如果未配置则返回null