摘要:
数据准备 @RestController @RequestMapping("/api") @Slf4j public class HealthController { @GetMapping("/health") public String health(@RequestBody TestVO te 阅读全文
摘要:
数据准备 定义一个AOP拦截器来打印日志,在接口执行完和执行抛异常时都会打印 @Slf4j @Aspect @Component public class ApiLogAspect { @Around("@annotation(com.imooc.ApiLog)") public Object do 阅读全文