Hi, all
I want to wrap the normal controller result to a json structure. For example , if the controller return string "hello, world", then I will return {'code':0,'result':'hello,world'} to client. First I overwrite function "aroundWriteTo" in WriterInterceptor. But when the result is null or the return type of controller function is "void", function "aroundWriteTo" is not called. So how should I realize this?
Thanks.