Files
gangyan/chat_web_backend/src/main/resources/application.yml

95 lines
2.7 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:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数默认为100
accept-count: 1000
threads:
# tomcat最大线程数默认为200
max: 800
# Tomcat启动初始化的线程数默认值10
min-spare: 100
accesslog:
enabled: false
buffered: true
directory: /opt/logs/${server.name}/access
file-date-format: .yyyMMdd
pattern: '%h %l %u %{yyyy-MM-dd HH:mm:ss}t "%r" %s %b "%{Referer}i" "%{User-Agent}i" %D ms'
prefix: access_log
rename-on-rotate: false
request-attributes-enabled: false
rotate: true
suffix: .log
# 请求头内容大小
max-http-header-size: 102400
# mybatis-plus
spring:
# 环境 dev|test|prod
profiles:
active: yj
# 应用名称
application:
name: ${server.name}
# bean定义允许覆盖
main:
allow-bean-definition-overriding: true
# jackson时间格式化
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# 文件上传限制
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB
enabled: true
# 指定静态资源的路径
resources:
static-locations: classpath:/static/,classpath:/templates/
mybatis-plus:
mapper-locations: classpath*:/mapper/**/*Mapper.xml
#实体扫描多个package用逗号或者分号分隔
typeAliasesPackage: com.inspur.llm.chat.gpt.entity;com.inspur.llm.chat.sys.entity
# 支持统配符 * 或者 ; 分割
typeEnumsPackage: com.inspur.llm.chat.gpt.enums
global-config:
db-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: 0
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: 2
#驼峰下划线转换
db-column-underline: true
#刷新mapper 调试神器
refresh-mapper: true
#数据库大写下划线转换
#capital-mode: true
#序列接口实现类配置
#key-generator: cn.jeefast.xxx
#逻辑删除配置
logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)
logic-delete-value: 1
logic-not-delete-value: 0
#自定义填充策略接口实现
#meta-object-handler: cn.jeefast.xxx
#自定义SQL注入器
#sql-injector: cn.jeefast.xxx
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /notice
# 匹配链接
urlPatterns: /monitor/*,/tool/*
# 词向量模型名称
embedding-model-name: bge_m3