We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf9acc2 commit 2503f26Copy full SHA for 2503f26
docs/guide/framework-and-middleware/postgresql.md
@@ -314,4 +314,17 @@ PostgreSQL支持丰富的数据类型,包括:
314
- 配置effective_cache_size: 告知优化器系统可用的缓存大小
315
- 限制连接数: 使用连接池减少每个连接的内存开销
316
- 监控内存使用情况: 通过操作系统工具和PostgreSQL系统视图
317
-- 避免过大的work_mem设置,可能导致内存竞争
+- 避免过大的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