# aop-log-example **Repository Path**: SoulBGM/aop-log-example ## Basic Information - **Project Name**: aop-log-example - **Description**: 利用AOP技术使用注解@Log进行日志记录 特色:使用spEL表达式进行排除不需要记录的参数内容 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-18 - **Last Updated**: 2024-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # aop-log-example #### 介绍 利用AOP技术使用注解@Log进行日志记录 **特色:** 使用spEL表达式进行排除不需要记录的参数内容 #### 使用 ```java @Log(title = "用户信息", type = OperationType.EXPORT) @GetMapping("export") public void export(UserInfo info,HttpServletResponse response){} @Log(title = "用户信息", type = OperationType.ADD, excludeRecordParam = {"#info.t1.name", "#info.t1.t2.name"}) @PostMapping("add") public ResultData add(@RequestBody UserInfo info){} @Log(title = "用户信息", type = OperationType.UPDATE) @PostMapping("edit") public ResultData edit(@RequestBody UserInfo info){} @Log(title = "用户信息", type = OperationType.REMOVE) @PostMapping("remove") public ResultData remove(String ids){} ```