| | |
| | | import org.springframework.web.servlet.HandlerMapping;
|
| | | import com.alibaba.fastjson2.JSON;
|
| | | import com.ruoyi.common.enums.HttpMethod;
|
| | | import com.ruoyi.common.filter.PropertyPreExcludeFilter;
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import com.ruoyi.common.utils.ServletUtils;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | |
| | | public class LogAspect
|
| | | {
|
| | | private static final Logger log = LoggerFactory.getLogger(LogAspect.class);
|
| | |
|
| | | /** æé¤ææå±æ§å段 */
|
| | | public static final String[] EXCLUDE_PROPERTIES = { "password", "oldPassword", "newPassword", "confirmPassword" };
|
| | |
|
| | | /**
|
| | | * å¤çå®è¯·æ±åæ§è¡
|
| | |
| | | {
|
| | | try
|
| | | {
|
| | | Object jsonObj = JSON.toJSON(o);
|
| | | String jsonObj = JSON.toJSONString(o, excludePropertyPreFilter());
|
| | | params += jsonObj.toString() + " ";
|
| | | }
|
| | | catch (Exception e)
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * å¿½ç¥ææå±æ§
|
| | | */
|
| | | public PropertyPreExcludeFilter excludePropertyPreFilter()
|
| | | {
|
| | | return new PropertyPreExcludeFilter().addExcludes(EXCLUDE_PROPERTIES);
|
| | | }
|
| | |
|
| | | /**
|
| | | * 夿æ¯å¦éè¦è¿æ»¤ç对象ã
|
| | | *
|
| | | * @param o 对象信æ¯ã
|