fun.bigtable.kraken.web.ApiDeprecatedAdvice Maven / Gradle / Ivy
package fun.bigtable.kraken.web;
import fun.bigtable.kraken.annotation.ApiDeprecated;
import fun.bigtable.kraken.exception.BusinessException;
import fun.bigtable.kraken.exception.Type;
import org.apache.commons.lang3.StringUtils;
import org.springframework.core.MethodParameter;
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.RestControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
import java.util.Optional;
/**
* 使用切面重构
*/
@RestControllerAdvice
public class ApiDeprecatedAdvice implements ResponseBodyAdvice
© 2015 - 2024 Weber Informatics LLC | Privacy Policy