feat:引入切面记录日志
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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, 犬小哈专栏");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user