Package com.bytedesk.core.config
Class WebMvcConfig
java.lang.Object
com.bytedesk.core.config.WebMvcConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@Description("Core Web MVC Configuration - \u6838\u5fc3Web MVC\u914d\u7f6e\u7c7b\uff0c\u914d\u7f6e\u9759\u6001\u8d44\u6e90\u7b49\u57fa\u7840\u529f\u80fd")
public class WebMvcConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceHandlers
(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) https://www.baeldung.com/spring-mvc-static-resources spring.mvc.static-path-pattern=/** 静态资源的配置 - 使得可以从磁盘中读取 Html、图片、视频、音频等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
-
Field Details
-
CLASSPATH_RESOURCE_LOCATIONS
-
-
Constructor Details
-
WebMvcConfig
public WebMvcConfig()
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) https://www.baeldung.com/spring-mvc-static-resources spring.mvc.static-path-pattern=/** 静态资源的配置 - 使得可以从磁盘中读取 Html、图片、视频、音频等- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-