Package io.github.lunasaw.zlm.config
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceHandlers(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, waitMethods 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:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
getTempSnapshotPath
获取临时截图目录路径- Returns:
- 临时截图目录路径,如果未配置则返回null
-