matrix.business.oauth2.config.AuthorizationResponseBodyAdvice Maven / Gradle / Ivy
package matrix.business.oauth2.config;
import matrix.boot.common.dto.Result;
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpStatus;
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.security.oauth2.common.exceptions.OAuth2Exception;
import org.springframework.security.oauth2.provider.endpoint.AbstractEndpoint;
import org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint;
import org.springframework.security.oauth2.provider.endpoint.TokenKeyEndpoint;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
/**
* 验证返回拦截器
*
* @author wangcheng
* 2021/12/30
**/
@SuppressWarnings("NullableProblems")
@RestControllerAdvice
public class AuthorizationResponseBodyAdvice implements ResponseBodyAdvice