File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/cn/com/hellowood/dynamicdatasource/apiutil/config Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
import cn .com .hellowood .dynamicdatasource .apiutil .interceptor .ApiResponseBodyReturnValueHandler ;
5
+ import cn .com .hellowood .dynamicdatasource .configuration .CustomHandlerExceptionResolver ;
5
6
import com .alibaba .fastjson .support .config .FastJsonConfig ;
6
7
import com .alibaba .fastjson .support .spring .FastJsonHttpMessageConverter ;
7
8
import org .springframework .format .FormatterRegistry ;
@@ -107,7 +108,7 @@ public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
107
108
108
109
@ Override
109
110
public void configureHandlerExceptionResolvers (List <HandlerExceptionResolver > exceptionResolvers ) {
110
-
111
+ exceptionResolvers . add ( new CustomHandlerExceptionResolver ());
111
112
}
112
113
113
114
@ Override
You can’t perform that action at this time.
0 commit comments