@Configuration @PropertySource(value="classpath:web.properties") public class WebMvcConfig extends Object
| 构造器和说明 |
|---|
WebMvcConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
GlobalExceptionHandler |
globalExceptionHandler()
Config global exception handler
|
PreventRepeatSubmitAspect |
preventRepeatSubmitAspect()
Config prevent repeat submit aspect
|
org.springframework.web.context.request.RequestContextListener |
requestContextListener()
Config request context listener
|
void |
setDownloadCacheSize(int downloadCacheSize)
Set download utils cache size
|
UserRoleAspect |
userRoleAspect()
Config user role aspect
|
WebLogAspect |
webLogAspect()
Config web log aspect
|
@Bean public org.springframework.web.context.request.RequestContextListener requestContextListener()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="web.enabled.globalExceptionHandler",
havingValue="true")
public GlobalExceptionHandler globalExceptionHandler()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="web.enabled.webLogAspect",
havingValue="true")
public WebLogAspect webLogAspect()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="web.enabled.preventRepeatSubmitAspect",
havingValue="true")
public PreventRepeatSubmitAspect preventRepeatSubmitAspect()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="web.enabled.userRole",
havingValue="true")
public UserRoleAspect userRoleAspect()
@Autowired
public void setDownloadCacheSize(@Value(value="${web.download.cacheSize}")
int downloadCacheSize)
Copyright © 2019. All rights reserved.