调用log.aspect.WebLog

master
张小东 2023-11-22 13:48:53 +08:00
parent 5de99663ea
commit 200dfa2447
2 changed files with 21 additions and 22 deletions

View File

@ -48,28 +48,28 @@
<version>3.6.3</version> <version>3.6.3</version>
</dependency> </dependency>
<!-- aop 依赖 --> <!-- &lt;!&ndash; aop 依赖 &ndash;&gt;-->
<dependency> <!-- <dependency>-->
<groupId>org.springframework.boot</groupId> <!-- <groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-starter-aop</artifactId> <!-- <artifactId>spring-boot-starter-aop</artifactId>-->
</dependency> <!-- </dependency>-->
<!-- 用于日志切面中,以 json 格式打印出入参 --> <!-- &lt;!&ndash; 用于日志切面中,以 json 格式打印出入参 &ndash;&gt;-->
<dependency> <!-- <dependency>-->
<groupId>com.google.code.gson</groupId> <!-- <groupId>com.google.code.gson</groupId>-->
<artifactId>gson</artifactId> <!-- <artifactId>gson</artifactId>-->
<version>2.8.9</version> <!-- <version>2.8.9</version>-->
</dependency> <!-- </dependency>-->
<!-- 引入 Spring Boot Starter 包括了默认的日志依赖 --> <!-- &lt;!&ndash; 引入 Spring Boot Starter 包括了默认的日志依赖 &ndash;&gt;-->
<dependency> <!-- <dependency>-->
<groupId>org.springframework.boot</groupId> <!-- <groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-starter</artifactId> <!-- <artifactId>spring-boot-starter</artifactId>-->
</dependency> <!-- </dependency>-->
<!-- 如果需要单独引入日志依赖 --> <!-- &lt;!&ndash; 如果需要单独引入日志依赖 &ndash;&gt;-->
<dependency> <!-- <dependency>-->
<groupId>org.springframework.boot</groupId> <!-- <groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-starter-logging</artifactId> <!-- <artifactId>spring-boot-starter-logging</artifactId>-->
</dependency> <!-- </dependency>-->
</dependencies> </dependencies>
<build> <build>
<finalName>${project.artifactId}</finalName> <finalName>${project.artifactId}</finalName>

View File

@ -9,7 +9,6 @@ import com.february.common.log.aspect.WebLog;
import com.vehicle.trajectory.service.TrajectoryService; import com.vehicle.trajectory.service.TrajectoryService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.List; import java.util.List;