fun.bigtable.kraken.web.advice.MyResponseBodyAdvice Maven / Gradle / Ivy
package fun.bigtable.kraken.web.advice;
import com.fasterxml.jackson.databind.ObjectMapper;
import fun.bigtable.kraken.annotation.EncryptController;
import fun.bigtable.kraken.util.AESOperator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;
import org.springframework.http.server.ServerHttpRequest;
import org.springframework.http.server.ServerHttpResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
/**
* 返回数据加密
*/
@Component
@ControllerAdvice(annotations = ResponseBody.class)
public class MyResponseBodyAdvice implements ResponseBodyAdvice
© 2015 - 2024 Weber Informatics LLC | Privacy Policy