Files
BOSS/BOSSBackEnd/src/main/resources/application.yml
RichZDS 207a62ef4b chore(config): 更新应用配置文件
- 移除 application.properties 中的 spring.profiles.active 配置
- 在 application.yml 中为 deepseek ai 服务添加 api-key 配置
- 保留 base-url 和 chat options 配置不变
2026-01-15 20:03:30 +08:00

94 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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: sk-b81e9c8cf9624929af4b668125a9955f
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