feat:引入切面记录日志

This commit is contained in:
lbw
2025-12-09 18:51:25 +08:00
parent 7ef76d2386
commit 247a3c9a5e
10 changed files with 169 additions and 1 deletions

View File

@@ -24,6 +24,12 @@
<artifactId>enlish-common</artifactId>
</dependency>
<!-- 业务接口日志组件 -->
<dependency>
<groupId>com.yinlihupo</groupId>
<artifactId>enlish-spring-boot-starter-biz-operationlog</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>

View File

@@ -1,5 +1,6 @@
package com.yinlihupo.enlish.service.deoms.web;
import com.yinlihupo.framework.biz.operationlog.aspect.ApiOperationLog;
import com.yinlihupo.framework.common.response.Response;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -8,6 +9,7 @@ import org.springframework.web.bind.annotation.RestController;
public class TestController {
@GetMapping("/test")
@ApiOperationLog(description = "测试接口")
public Response<String> test() {
return Response.success("Hello, 犬小哈专栏");
}