a
554325746@qq.com
2019-12-25 5ca83635d670aff1070f616a50d3fc43cccf2e29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.basic.security.rest;
 
import org.androidannotations.annotations.EBean;
import org.androidannotations.rest.spring.api.RestErrorHandler;
import org.springframework.core.NestedRuntimeException;
 
@EBean
public class MyErrorHandler implements RestErrorHandler {
 
    @Override
    public void onRestClientExceptionThrown(NestedRuntimeException e) {
        System.out.println("onRestClientExceptionThrown="+e.getMessage());
    }
 
}