feat(ai): 实现AI聊天功能并集成数据库工具
- 新增 AiChatController 支持流式聊天响应 - 创建 AIResponse 和 ChatMessageDTO 用于数据传输 - 开发 AiDBTools 提供用户相关的增删改查及封禁功能- 配置 ChatClient 支持默认工具调用 - 调整 User 实体类时间字段为 OffsetDateTime 并格式化- 添加 jackson-datatype-jsr310 依赖以支持 JSR310 时间序列化 - 修改 PostgreSQL 连接字符串时区配置 - 启用 Jackson 日期写入为字符串而非时间戳
This commit is contained in:
@@ -9,6 +9,9 @@ spring:
|
||||
name: snails-ai
|
||||
banner:
|
||||
location: config/banner.txt
|
||||
jackson:
|
||||
serialization:
|
||||
write-dates-as-timestamps: false
|
||||
data:
|
||||
redis:
|
||||
host: localhost
|
||||
@@ -25,7 +28,7 @@ spring:
|
||||
time-between-eviction-runs: 10000
|
||||
datasource:
|
||||
driver-class-name: org.postgresql.Driver
|
||||
url: jdbc:postgresql://localhost:5432/postgres
|
||||
url: jdbc:postgresql://localhost:5432/postgres?serverTimezone=Asia/Shanghai
|
||||
username: postgres
|
||||
password: postgressql
|
||||
# HikariCP 连接池配置
|
||||
|
||||
Reference in New Issue
Block a user