io.github.taills.common.annotation.ApiResponseBodyAdvice Maven / Gradle / Ivy
package io.github.taills.common.annotation;
import io.github.taills.common.response.ApiResult;
import org.springframework.core.MethodParameter;
import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.http.MediaType;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
import java.lang.annotation.Annotation;
/**
* @author taills
* @date 2019/05/01
*/
@RestControllerAdvice
@ControllerAdvice(annotations = ApiResponseBody.class)
public class ApiResponseBodyAdvice implements ResponseBodyAdvice
© 2015 - 2025 Weber Informatics LLC | Privacy Policy