From aed297a5fbc8df9dab01b28da21f872ee546b43c Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 13 十月 2025 16:15:11 +0800
Subject: [PATCH] 2025.10.13 1. 统一调整controller层的返回类型,通过添加全局响应增强器GlobalResponseAdvice来管理返回结果; 2. 新增mybatis-generator自定义插件,实现给数据库实体entity自动添加swagger注解@ApiModel和@ApiModelProperty
---
pom.xml | 34 +++++++++++++++++++++++++++++++++-
1 files changed, 33 insertions(+), 1 deletions(-)
diff --git a/pom.xml b/pom.xml
index 4145dee..d60f5ae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,6 +27,7 @@
<kotlin.version>1.4.32</kotlin.version>
<!-- tk.mybatis -->
<mapper.plugin>tk.mybatis.mapper.generator.MapperPlugin</mapper.plugin>
+<!-- <mapper.plugin>cn.flight.feather.mybatis.plugin.CustomAnnotationPlugin</mapper.plugin>-->
<mapper.Mapper>tk.mybatis.mapper.common.Mapper</mapper.Mapper>
<resource.delimiters>@</resource.delimiters>
</properties>
@@ -224,10 +225,28 @@
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
+<!-- <dependency>-->
+<!-- <groupId>org.junit.jupiter</groupId>-->
+<!-- <artifactId>junit-jupiter-api</artifactId>-->
+<!-- <version>5.0.0</version>-->
+<!-- <scope>test</scope>-->
+<!-- </dependency>-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
- <version>5.0.0</version>
+ <version>5.8.1</version> <!-- 浣跨敤鏈�鏂扮殑鐗堟湰鍙� -->
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-params</artifactId>
+ <version>5.8.1</version> <!-- 浣跨敤鏈�鏂扮殑鐗堟湰鍙� -->
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>5.8.1</version> <!-- 浣跨敤鏈�鏂扮殑鐗堟湰鍙� -->
<scope>test</scope>
</dependency>
<dependency>
@@ -449,6 +468,13 @@
<artifactId>mapper</artifactId>
<version>3.3.9</version>
</dependency>
+ <dependency>
+ <groupId>cn.flight.feather.devtool</groupId>
+ <artifactId>mybatis-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>system</scope>
+ <systemPath>C:/work/ideaProject/java-repository/mybatis-plugin-1.0-SNAPSHOT.jar</systemPath>
+ </dependency>
</dependencies>
</plugin>
<!-- <plugin>-->
@@ -499,6 +525,12 @@
</properties>
</profile>
<profile>
+ <id>pro-https</id>
+ <properties>
+ <profileActive>pro-https</profileActive>
+ </properties>
+ </profile>
+ <profile>
<id>test</id>
<properties>
<profileActive>test</profileActive>
--
Gitblit v1.9.3