com.nxyfan.framework.common.safe.EncryptResponseBodyAdvice Maven / Gradle / Ivy
package com.nxyfan.framework.common.safe;
import java.lang.reflect.Method;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
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.ControllerAdvice;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerExecutionChain;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice;
import com.alibaba.fastjson.JSON;
import com.nxyfan.framework.common.annotation.CommonApiSafe;
import com.nxyfan.framework.common.cache.CommonCacheOperator;
import com.nxyfan.framework.common.constant.CommonConstant;
import com.nxyfan.framework.common.prop.CommonProperties;
import com.nxyfan.framework.common.util.CommonCryptogramUtil;
import com.nxyfan.framework.common.util.CommonServletUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.spring.SpringUtil;
/**
*
* Describe: 对响应的数据进行加密
* Author: Administrator
* Create Time: 2024年4月25日 下午2:25:23
* Copyright @ 2024 51LIFE
*/
@ControllerAdvice
public class EncryptResponseBodyAdvice implements ResponseBodyAdvice