- 添加GLM大模型配置支持 - 配置生产环境Redis连接信息 - 更新支付回调URL路径配置 - 添加微信和支付宝支付配置到生产环境 - 修改异常处理器捕获BizException - 添加内容详情、需求说明和介绍字段 - 将内容管理重命名为skill管理 - 添加取消收藏功能接口 - 添加用户历史查看、收藏、购买和创建内容列表接口 - 实现用户行为统计和个性化内容推荐功能 - 更新数据库映射文件以支持新字段和查询功能
92 lines
2.1 KiB
YAML
92 lines
2.1 KiB
YAML
spring:
|
||
profiles:
|
||
active: prod
|
||
application:
|
||
name: agentSkills
|
||
version: 1.0.0
|
||
mvc:
|
||
pathmatch:
|
||
matching-strategy: ANT_PATH_MATCHER
|
||
static-path-pattern: /**
|
||
date-format: yyyy-MM-dd
|
||
favicon:
|
||
enabled: true
|
||
thymeleaf:
|
||
encoding: UTF-8
|
||
cache: false
|
||
mode: HTML
|
||
prefix: classpath:/templates/
|
||
suffix: .html
|
||
http:
|
||
encoding:
|
||
charset: UTF-8
|
||
enabled: true
|
||
force: true
|
||
servlet:
|
||
multipart:
|
||
max-request-size: 20MB
|
||
max-file-size: 20MB
|
||
|
||
ai:
|
||
deepseek:
|
||
base-url: https://api.deepseek.com
|
||
api-key: ${DEEPSEEK_API_KEY:sk-7334f88754a84a86abbd98fc907d3354}
|
||
chat:
|
||
model: deepseek-chat
|
||
temperature: 0.3
|
||
max-tokens: 500
|
||
glm:
|
||
base-url: https://open.bigmodel.cn/api/paas/v4
|
||
api-key: ${GLM_API_KEY:57a566a125bb4492900db0578969f27d.JLpuGSzr9hhLurM7}
|
||
chat:
|
||
model: glm-4.6v
|
||
temperature: 0.7
|
||
max-tokens: 8192
|
||
|
||
# 包含公共配置文件
|
||
spring.config.import:
|
||
- classpath:application-common.yml
|
||
|
||
springdoc:
|
||
api-docs:
|
||
enabled: true
|
||
path: /v3/api-docs
|
||
swagger-ui:
|
||
enabled: true
|
||
path: /doc.html
|
||
layout: StandaloneLayout
|
||
doc-expansion: none
|
||
packages-to-scan: com.kexue.skills.controller
|
||
|
||
mybatis:
|
||
mapper-locations: classpath:mapper/*.xml
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
|
||
pagehelper:
|
||
helperDialect: mysql
|
||
reasonable: true
|
||
supportMethodsArguments: true
|
||
params: count=countSql
|
||
|
||
# SMS4J 短信发送配置
|
||
sms:
|
||
# 从 YAML 读取配置
|
||
config-type: YAML
|
||
http-log: true
|
||
is-print: false
|
||
blends:
|
||
alibaba:
|
||
# 短信厂商
|
||
supplier: alibaba
|
||
requestUrl: dysmsapi.aliyuncs.com
|
||
access-key-id: LTAI5t8rsaBDrno4xd4F6EwE
|
||
access-key-secret: QNmjxatrgzBYukAKr8BZ4r7gd37SHw
|
||
signature: 武汉可学智能科技
|
||
# 阿里云短信模板ID,需要替换为实际申请的模板ID
|
||
template-id: SMS_493720484 # 实际使用时请替换为真实模板ID
|
||
# 短信模板变量名,对应验证码的变量
|
||
template-param-name: code
|
||
template-cache: true
|
||
|