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 |   43 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 93616db..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>
@@ -67,6 +68,11 @@
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-webflux</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-websocket</artifactId>
         </dependency>
 
         <!-- https://mvnrepository.com/artifact/org.springframework.plugin/spring-plugin-core -->
@@ -219,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>
@@ -432,8 +456,8 @@
                 <artifactId>mybatis-generator-maven-plugin</artifactId>
                 <version>1.3.2</version>
                 <configuration>
-                    <!--                    <configurationFile>src/main/resources/generator/generatorConfig4ds1.xml</configurationFile>-->
-                    <configurationFile>src/main/resources/generator/generatorConfig4ds3.xml</configurationFile>
+                    <configurationFile>src/main/resources/generator/generatorConfig4ds1.xml</configurationFile>
+<!--                    <configurationFile>src/main/resources/generator/generatorConfig4ds3.xml</configurationFile>-->
                     <overwrite>true</overwrite>
                     <verbose>true</verbose>
                 </configuration>
@@ -443,6 +467,13 @@
                         <groupId>tk.mybatis</groupId>
                         <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>
@@ -494,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