@Order
@RestControllerAdvice
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class})
@ConditionalOnWebApplication(type=SERVLET)
public class AllbsExceptionTranslator
extends Object
| 构造器和说明 |
|---|
AllbsExceptionTranslator(org.springframework.beans.factory.ObjectProvider<IContext> micaContextProvider,
org.springframework.context.ApplicationEventPublisher publisher) |
@Autowired public AllbsExceptionTranslator(org.springframework.beans.factory.ObjectProvider<IContext> micaContextProvider, org.springframework.context.ApplicationEventPublisher publisher)
@ExceptionHandler(value=cn.allbs.common.exception.ServiceException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) public R<Object> handleError(ServiceException e)
@ExceptionHandler(value=java.lang.Throwable.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) public R<Object> handleError(Throwable e)
Copyright © 2021. All rights reserved.