@Configuration public class FrameworkWebConfig extends Object
Framework web config
0.0.4: Add setDownloadCacheSize method; Add config GlobalExceptionHandler, WebLogAspect, PreventRepeatSubmitAspect 1.0.2: 修改配置属性前缀;删除DownloadUtil cacheSize, RequestContextListener配置| 构造器和说明 |
|---|
FrameworkWebConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
GlobalExceptionHandler |
globalExceptionHandler()
Config global exception handler
|
PreventRepeatSubmitAspect |
preventRepeatSubmitAspect()
Config prevent repeat submit aspect
|
UserRoleAspect |
userRoleAspect()
Config user role aspect
|
WebLogAspect |
webLogAspect()
Config web log aspect
|
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="framework.web.enabled.global-exception-handler",
havingValue="true",
matchIfMissing=true)
public GlobalExceptionHandler globalExceptionHandler()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="framework.web.enabled.web-log",
havingValue="true")
public WebLogAspect webLogAspect()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="framework.web.enabled.prevent-repeat-submit",
havingValue="true",
matchIfMissing=true)
public PreventRepeatSubmitAspect preventRepeatSubmitAspect()
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="framework.web.enabled.user-role",
havingValue="true",
matchIfMissing=true)
public UserRoleAspect userRoleAspect()
Copyright © 2019. All rights reserved.