fix(swagger): 修正Knife4j配置并补充接口注解

- 更新扫描包路径为正确包名 com.yolo.keyborad.controller
- 修正文档标题与项目名 keyborad-backend 保持一致
- 在 DemoController 添加 @Api 及 @ApiOperation 注解
This commit is contained in:
2025-10-31 19:58:50 +08:00
parent 79eee28b73
commit c552642825
3 changed files with 10 additions and 16 deletions

11
pom.xml
View File

@@ -31,13 +31,11 @@
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.2.2</version>
</dependency>
<!-- mybatis-plus 依赖 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.1</version>
</dependency>
<!-- redis 依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
@@ -64,7 +62,6 @@
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
<!-- hutool 工具-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
@@ -76,7 +73,6 @@
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!-- 数据库驱动 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
@@ -103,7 +99,6 @@
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.44.0</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
@@ -112,12 +107,6 @@
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<!-- 日志依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
</dependencies>
<build>