上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 97 下一页
摘要: 一、yaml文件 minio: endpoint: http://<hostname>:<port> access-key: <access-key> secret-key: <secret-key> bucket-name: <bucket-name> 二、实体类(接收yaml注入值) packa 阅读全文
posted @ 2025-05-11 23:03 市丸银 阅读(41) 评论(0) 推荐(0)
摘要: 一、过程 1、前端传入:interage自动转换String类型 2、数据库枚存储举类对应的类型:tinyint 3、流程 请求: 前端传入string类型(code) -> 在controller层接收,转换成枚举类型 -> 转换成数据库类 响应:数据库tinyint -> 枚举类型 -> 前端的 阅读全文
posted @ 2025-05-10 16:46 市丸银 阅读(192) 评论(0) 推荐(0)
摘要: 注意:创建实体类 父类 BaseEntity @Data public class BaseEntity implements Serializable { @Schema(description = "主键") @TableId(value = "id", type = IdType.AUTO) 阅读全文
posted @ 2025-05-10 15:56 市丸银 阅读(95) 评论(0) 推荐(0)
摘要: 网址: http://localhost:8080/doc.html#/home 一、注入依赖 <!-- SpringDoc OpenAPI UI --> <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-open 阅读全文
posted @ 2025-05-08 20:28 市丸银 阅读(559) 评论(0) 推荐(0)
摘要: 一、引入依赖 <!--数据库相关依赖--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-spring-boot3-starter</artifactId> <version>3.5.11</version 阅读全文
posted @ 2025-05-08 19:12 市丸银 阅读(940) 评论(0) 推荐(0)
摘要: 一、依赖 <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> <version>2.0.4</version> </dependency> 阅读全文
posted @ 2025-05-08 12:25 市丸银 阅读(147) 评论(0) 推荐(0)
摘要: 一、引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.spr 阅读全文
posted @ 2025-05-08 10:30 市丸银 阅读(151) 评论(0) 推荐(0)
摘要: 一、maven <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2025-05-03 14:38 市丸银 阅读(43) 评论(0) 推荐(0)
摘要: 一、自带查询的分页 1、mapper public interface UserMapper extends BaseMapper<User> { } 2、获取 Page<User> page = new Page<>(1, 3); userMapper.selectPage(page, null) 阅读全文
posted @ 2025-05-02 21:42 市丸银 阅读(197) 评论(0) 推荐(0)
摘要: 一、yaml # 配置 server: port: 8081 servlet: context-path: /api # 数据库 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.dru 阅读全文
posted @ 2025-05-02 17:41 市丸银 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 97 下一页