Files
nuttyreading-java/src/main/resources/application.yml
2025-07-08 15:52:15 +08:00

127 lines
3.5 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.
# Tomcat
server:
tomcat:
uri-encoding: UTF-8
max-threads: 1000
min-spare-threads: 30
servlet:
context-path: /pb
connection-timeout: 6000000ms
spring:
# 环境 dev/dev1|test|prod
profiles:
active: dev
# jackson时间格式化
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
max-file-size: 1000MB
max-request-size: 1000MB
enabled: true
mvc:
throw-exception-if-no-handler-found: true
pathmatch:
matching-strategy: ANT_PATH_MATCHER
# resources:
# add-mappings: false
output:
ansi:
enabled: always
task:
execution:
pool:
core-size: 5
max-size: 50
main:
allow-circular-references: true
ai:
mcp:
client:
toolcallback:
enabled: true
name: spring-ai-mcp-client
type: async
sse:
connections:
server1:
url: http://localhost:9090
# stdio:
# connections:
# server2:
# command: java
# args:
# -Dspring.ai.mcp.server.stdio=true
# -Dspring.main.web-application-type=none
# -Dspring.main.banner-mode=off
# -jar
# F:\ideaProject\stdioServer\target\stdioServer-0.0.1-SNAPSHOT.jar
openai:
api-key: sk-9b9babcc85414e999faac58411eb40d0 # 设置 DeepSeek API 的访问密钥,永远不要将密钥提交到代码仓库,建议通过环境变量注入。-收费
base-url: https://api.deepseek.com # 指定 DeepSeek API 的基础地址格式与OpenAI相同。
chat:
options:
model: deepseek-chat # 选择要调用的 DeepSeek 模型名称,必须与 DeepSeek 支持的模型列表匹配(如 deepseek-chat、deepseek-coder 等),不同模型可能有不同的计费标准和能力。
temperature: 0.7 # temperature 值越高AI 回答越随机和创意;值越低,回答越确定和保守。
# ollama:
# base-url: http://localhost:11434
# chat:
# model: deepseek-r1:8b
#mybatis
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*.xml
#实体扫描多个package用逗号或者分号分隔
typeAliasesPackage: io.renren.modules.*.entity
global-config:
#数据库相关配置
db-config:
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
id-type: AUTO
logic-delete-value: -1
logic-not-delete-value: 0
banner: false
#原生配置
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
jdbc-type-for-null: 'null'
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
renren:
redis:
open: false
shiro:
redis: false
# APP模块是通过jwt认证的如果要使用APP模块则需要修改【加密秘钥】
jwt:
# 加密秘钥
secret: f4e2e52034348f86b67cde581c0f9eb5[www.renren.io]
# token有效时长7天单位秒
expire: 604800
header: token
#spring.jackson.serialization.FAIL_ON_EMPTY_BEANS: false
express:
sender:
senderName: 众妙之门
mobile: 17602219785
provinceName: 天津
cityName: 天津
expAreaName: 南开
address: 秋泽园149号顺丰
ragflow:
url: http://125.39.141.154:81
authorization: Bearer ragflow-A5NTQzNGVlMzE2NjExZjBiZjk3MTZlZm