Skip to content

Commit 2503f26

Browse files
committed
Update postgresql.md
1 parent bf9acc2 commit 2503f26

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/guide/framework-and-middleware/postgresql.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,17 @@ PostgreSQL支持丰富的数据类型,包括:
314314
- 配置effective_cache_size: 告知优化器系统可用的缓存大小
315315
- 限制连接数: 使用连接池减少每个连接的内存开销
316316
- 监控内存使用情况: 通过操作系统工具和PostgreSQL系统视图
317-
- 避免过大的work_mem设置,可能导致内存竞争
317+
- 避免过大的work_mem设置,可能导致内存竞争
318+
319+
## 三、示例代码
320+
321+
### Spring Boot集成PostgreSQL示例
322+
323+
GitHub示例代码链接:[spring-boot-postgresql-demo](https://github.com/zhuyizhuo/spring-boot-samples/tree/master/spring-boot-3.x-samples/postgresql-demo)
324+
325+
该示例项目展示了Spring Boot 3.x与PostgreSQL数据库的集成使用,包括:
326+
- Spring Data JPA的基本配置
327+
- 实体类映射
328+
- 数据访问层实现
329+
- 事务管理
330+
- 基本CRUD操作示例

0 commit comments

Comments
 (0)