@AutoConfiguration @EnableConfigurationProperties(value=ExceptionHandleProperties.class) public class ExceptionAutoConfiguration extends Object
| 构造器和说明 |
|---|
ExceptionAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
GlobalExceptionHandler |
defaultGlobalExceptionHandler()
已过时。
使用 enabled 来进行配置
|
GlobalExceptionHandler |
dingTalkGlobalExceptionHandler(ExceptionHandleProperties exceptionHandleProperties,
org.springframework.context.ApplicationContext context)
钉钉消息通知的日志处理器
|
GlobalHandlerExceptionResolver |
globalExceptionHandlerResolver(GlobalExceptionHandler globalExceptionHandler)
默认的异常处理器
|
GlobalExceptionHandler |
mailGlobalExceptionHandler(ExceptionHandleProperties exceptionHandleProperties,
org.springframework.context.ApplicationContext context)
邮件消息通知的日志处理器
|
GlobalExceptionHandler |
multiGlobalExceptionHandler(ExceptionHandleProperties properties,
org.springframework.context.ApplicationContext context) |
@Bean @Deprecated @ConditionalOnMissingBean(value=com.hccake.ballcat.common.core.exception.handler.GlobalExceptionHandler.class) @ConditionalOnProperty(prefix="ballcat.exception", matchIfMissing=true, name="type", havingValue="NONE") public GlobalExceptionHandler defaultGlobalExceptionHandler()
@Bean @ConditionalOnMissingBean(value=com.hccake.ballcat.common.core.exception.handler.GlobalExceptionHandler.class) public GlobalExceptionHandler multiGlobalExceptionHandler(ExceptionHandleProperties properties, org.springframework.context.ApplicationContext context)
@Bean @ConditionalOnMissingBean(value=com.hccake.ballcat.common.core.exception.handler.GlobalExceptionHandler.class) @ConditionalOnProperty(prefix="ballcat.exception", name="type", havingValue="DING_TALK") public GlobalExceptionHandler dingTalkGlobalExceptionHandler(ExceptionHandleProperties exceptionHandleProperties, org.springframework.context.ApplicationContext context)
@Bean @ConditionalOnMissingBean(value=com.hccake.ballcat.common.core.exception.handler.GlobalExceptionHandler.class) @ConditionalOnProperty(prefix="ballcat.exception", name="type", havingValue="MAIL") public GlobalExceptionHandler mailGlobalExceptionHandler(ExceptionHandleProperties exceptionHandleProperties, org.springframework.context.ApplicationContext context)
@Bean @ConditionalOnMissingBean(value=GlobalHandlerExceptionResolver.class) public GlobalHandlerExceptionResolver globalExceptionHandlerResolver(GlobalExceptionHandler globalExceptionHandler)
Copyright © 2023. All rights reserved.