@Configuration public class SpringBootPlusWebMvcConfig extends Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| Constructor and Description |
|---|
SpringBootPlusWebMvcConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
DownloadInterceptor |
downloadInterceptor()
下载拦截器
|
void |
init() |
PermissionInterceptor |
permissionInterceptor()
权限拦截器
|
ResourceInterceptor |
resourceInterceptor()
资源拦截器
|
UploadInterceptor |
uploadInterceptor()
上传拦截器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addCorsMappings, addFormatters, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator@Bean public PermissionInterceptor permissionInterceptor()
@Bean public UploadInterceptor uploadInterceptor()
@Bean public ResourceInterceptor resourceInterceptor()
@Bean public DownloadInterceptor downloadInterceptor()
@PostConstruct public void init()
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerCopyright © 2019. All rights reserved.