会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
市丸银
知行合一
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
97
下一页
2025年5月11日
springboot 配置文件注入 yaml 注入值
摘要: 一、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)
2025年5月10日
springboot 枚举类的转换(converter)
摘要: 一、过程 1、前端传入:interage自动转换String类型 2、数据库枚存储举类对应的类型:tinyint 3、流程 请求: 前端传入string类型(code) -> 在controller层接收,转换成枚举类型 -> 转换成数据库类 响应:数据库tinyint -> 枚举类型 -> 前端的
阅读全文
posted @ 2025-05-10 16:46 市丸银
阅读(192)
评论(0)
推荐(0)
springboot 逻辑删除、创建时间、更新时间实现 返回值 忽略 逻辑删除字段、创建时间字段和更新时间字段 不同时区(越南)
摘要: 注意:创建实体类 父类 BaseEntity @Data public class BaseEntity implements Serializable { @Schema(description = "主键") @TableId(value = "id", type = IdType.AUTO)
阅读全文
posted @ 2025-05-10 15:56 市丸银
阅读(95)
评论(0)
推荐(0)
2025年5月8日
springboot3.4.5 配置Knife4j 官方推荐使用
摘要: 网址: 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)
springboot3.4.5 配置mybatis-plus
摘要: 一、引入依赖 <!--数据库相关依赖--> <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)
springboot3.4.5 swagger配置
摘要: 一、依赖 <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)
springboot3.4.5 log4j2 日志配置
摘要: 一、引入依赖 <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)
2025年5月3日
springboot3 maven yaml mybatis-plus
摘要: 一、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)
2025年5月2日
springboot3 mybatis-plus 分页
摘要: 一、自带查询的分页 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)
springboot3 maven yaml文件 mybatis
摘要: 一、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
下一页
公告