摘要:        
数据准备 @RestController @RequestMapping("/api") @Slf4j public class HealthController { @GetMapping("/health") public String health(@RequestBody TestVO te    阅读全文
posted @ 2025-07-04 20:14
strongmore
阅读(20)
评论(0)
推荐(0)
        
            
        
        
摘要:        
数据准备 定义一个AOP拦截器来打印日志,在接口执行完和执行抛异常时都会打印 @Slf4j @Aspect @Component public class ApiLogAspect { @Around("@annotation(com.imooc.ApiLog)") public Object do    阅读全文
posted @ 2025-07-04 20:13
strongmore
阅读(13)
评论(0)
推荐(0)
        
        
        
        
        
        
        
浙公网安备 33010602011771号