- 配置DeepSeek AI相关依赖和配置项 - 创建ChatController提供AI聊天测试接口 - 实现AiService和AiServiceImpl提供AI优化服务 - 添加ResumeAiOptimizeRequest和ResumeAiOptimizeVO数据传输对象 - 在ResumeController中添加AI优化简历的API端点 - 前端ResumeEdit页面集成AI优化按钮和进度显示 - 实现前端调用AI优化接口并更新表单内容 - 添加AI优化相关的样式和交互效果
94 lines
2.0 KiB
YAML
94 lines
2.0 KiB
YAML
server:
|
||
port: 8081
|
||
servlet:
|
||
session:
|
||
cookie:
|
||
max-age: 2592000s
|
||
|
||
spring:
|
||
servlet:
|
||
multipart:
|
||
enabled: true
|
||
max-file-size: 10MB
|
||
max-request-size: 10MB
|
||
file-size-threshold: 1MB
|
||
resolve-lazily: true # 延迟解析,避免提前解析导致 boundary 错误
|
||
session:
|
||
store-type: redis
|
||
timeout: 30d
|
||
application:
|
||
name: BOSS
|
||
|
||
ai:
|
||
deepseek:
|
||
api-key:
|
||
base-url: https://api.deepseek.com
|
||
chat:
|
||
options:
|
||
model: deepseek-chat
|
||
|
||
datasource:
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
url: jdbc:mysql://127.0.0.1:3306/boss?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||
username: root
|
||
password: 123456
|
||
hikari:
|
||
maximum-pool-size: 20
|
||
minimum-idle: 5
|
||
connection-timeout: 30000
|
||
|
||
data:
|
||
redis:
|
||
host: 127.0.0.1
|
||
port: 6379
|
||
database: 0
|
||
password: ""
|
||
timeout: 5s
|
||
lettuce:
|
||
pool:
|
||
max-active: 16
|
||
max-idle: 8
|
||
min-idle: 0
|
||
max-wait: 2s
|
||
|
||
# 关闭自动数据库初始化
|
||
sql:
|
||
init:
|
||
mode: never
|
||
|
||
|
||
mybatis-plus:
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
global-config:
|
||
db-config:
|
||
logic-delete-field: isDelete # 全局逻辑删除字段名
|
||
logic-delete-value: 1 # 逻辑已删除值
|
||
logic-not-delete-value: 0 # 逻辑未删除值
|
||
|
||
logging:
|
||
level:
|
||
root: info
|
||
com.zds.boss.mapper: debug
|
||
|
||
# 本地文件存储配置
|
||
file:
|
||
# 文件存储路径(相对于项目根目录)
|
||
storage:
|
||
path: src/main/resources/static
|
||
# 最大文件大小(MB)
|
||
max-size-mb: 10
|
||
|
||
# 腾讯云COS配置
|
||
cos:
|
||
# 密钥ID
|
||
secret-id:
|
||
# 密钥Key(生产环境请使用环境变量或配置中心)
|
||
secret-key:
|
||
# 地域
|
||
region: ap-shanghai
|
||
# 存储桶名称
|
||
bucket-name: bosss-1336488383
|
||
# 访问域名前缀
|
||
url-prefix: https://bosss-1336488383.cos.ap-shanghai.myqcloud.com |