@ControllerAdvice(basePackageClasses= {})
publicclassCommonResponseAdviceimplementsResponseBodyAdvice {
@OverridepublicObjectbeforeBodyWrite(Objecto, MethodParametermethodParameter, MediaTypemediaType, ClassaClass, ServerHttpRequestserverHttpRequest, ServerHttpResponseserverHttpResponse) {
String[] value=methodParameter.getContainingClass().getAnnotation(RequestMapping.class).value();
String[] methodPathArray=methodParameter.getMethodAnnotation(RequestMapping.class).value();
StringrequestMethod=serverHttpRequest.getMethodValue();
returno;
}
@Overridepublicbooleansupports(MethodParametermethodParameter, ClassaClass) {
returntrue;
}
}