Initial commit: MSH System\n\n- msh_single_uniapp: Vue 2 + UniApp 前端(微信小程序/H5/App/支付宝小程序)\n- msh_crmeb_22: Spring Boot 2.2 后端(C端API/管理端/业务逻辑)\n- models-integration: AI服务集成(Coze/KieAI/腾讯ASR)\n- docs: 产品文档与设计稿
This commit is contained in:
156
models-integration/target/classes/application-jxz.yml
Normal file
156
models-integration/target/classes/application-jxz.yml
Normal file
@@ -0,0 +1,156 @@
|
||||
# Spring Boot 应用配置文件
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 50MB #设置单个文件大小
|
||||
max-request-size: 50MB #设置单次请求文件的总大小
|
||||
application:
|
||||
name: models-integration #这个很重要,这在以后的服务与服务之间相互调用一般都是根据这个name
|
||||
# 数据库配置
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
name: shop_msh
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://118.89.113.119:3306/${spring.datasource.name}?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: baisui
|
||||
password: fFmTJhBEFSnYGYW7
|
||||
# Druid连接池配置
|
||||
druid:
|
||||
initial-size: 5
|
||||
min-idle: 5
|
||||
max-active: 20
|
||||
# 禁用验证查询,解决与MySQL 8驱动的兼容性问题
|
||||
validation-query: SELECT 1
|
||||
test-while-idle: false
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
pool-prepared-statements: false
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
filters: stat,wall
|
||||
# 不同数据源配置
|
||||
shop-msh:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://118.89.113.119:3306/shop_msh?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: baisui
|
||||
password: fFmTJhBEFSnYGYW7
|
||||
jzjg-jxz:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://118.89.113.119:3306/jzjg_jxz?useUnicode=true&serverTimezone=GMT%2B8&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: baisui
|
||||
password: fFmTJhBEFSnYGYW7
|
||||
main:
|
||||
allow-circular-references: true
|
||||
redis:
|
||||
host: 118.89.113.119 #地址
|
||||
port: 6379 #端口
|
||||
password: 'UthinkCloud2017'
|
||||
timeout: 10000 # 连接超时时间(毫秒)
|
||||
database: 27 #默认数据库 jxz项目
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-idle: 10 # 连接池中的最大空闲连接
|
||||
min-idle: 0 # 连接池中的最小空闲连接
|
||||
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
|
||||
|
||||
# 自定义配置
|
||||
app:
|
||||
# 应用名称
|
||||
name: models-integration-api
|
||||
# 应用版本
|
||||
version: 1.0.0
|
||||
# 数据同步配置
|
||||
sync:
|
||||
batch-size: 100
|
||||
interval-seconds: 3600
|
||||
enabled: true
|
||||
|
||||
# KieAI API配置
|
||||
kie-ai:
|
||||
# API基础URL
|
||||
base-url: https://api.kie.ai
|
||||
# API Token (需要在环境变量或配置文件中设置)
|
||||
api-token: 484661585fe62c5bcb77e6d392ba8ee8
|
||||
# 回调URL
|
||||
api-callback-url: https://jxz.uj345.cc/models/api/kieai/callback
|
||||
api-upload-base-url: https://kieai.redpandaai.co
|
||||
# 连接超时时间(毫秒)
|
||||
connect-timeout: 30000
|
||||
# 读取超时时间(毫秒)
|
||||
read-timeout: 60000
|
||||
# 最大重试次数
|
||||
max-retries: 3
|
||||
# 重试间隔时间(毫秒)
|
||||
retry-interval: 1000
|
||||
# 任务状态查询间隔(毫秒)
|
||||
poll-interval: 2000
|
||||
# 任务最大等待时间(毫秒)
|
||||
max-wait-time: 300000
|
||||
# 是否启用回调
|
||||
callback-enabled: true
|
||||
# 默认输出格式
|
||||
default-output-format: png
|
||||
# 默认图像尺寸
|
||||
default-image-size: "2:3"
|
||||
|
||||
# 腾讯云语音识别配置
|
||||
tencent-asr:
|
||||
# API密钥ID
|
||||
secret-id: AKID76sRn273nPuCJJ6h0GNbv78zhEaosz0p
|
||||
# API密钥Key(需要在实际使用时提供)
|
||||
secret-key: kKm6FQWUNJTjuvjNo23qQozWzISuY1IL
|
||||
# API地区
|
||||
region: ap-shanghai
|
||||
# 连接超时时间(毫秒)
|
||||
connect-timeout: 30000
|
||||
# 读取超时时间(毫秒)
|
||||
read-timeout: 60000
|
||||
# 默认引擎模型类型(16k_zh:中文普通话、16k_en:英文)
|
||||
default-engine-model: 16k_zh
|
||||
# 默认结果文本格式(0:识别结果文本,包含标点符号;1:不带标点的识别结果)
|
||||
default-res-text-format: 0
|
||||
# 默认音频声道数(1:单声道;2:双声道)
|
||||
default-channel-num: 1
|
||||
# 是否启用
|
||||
enabled: true
|
||||
|
||||
# 服务器配置
|
||||
server:
|
||||
port: 5081
|
||||
servlet:
|
||||
context-path: /
|
||||
tomcat:
|
||||
uri-encoding: UTF-8
|
||||
max-threads: 200
|
||||
min-spare-threads: 10
|
||||
|
||||
# Swagger3文档配置
|
||||
springdoc:
|
||||
api-docs:
|
||||
path: /v3/api-docs
|
||||
enabled: true
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
enabled: true
|
||||
operationsSorter: method
|
||||
tagsSorter: alpha
|
||||
tryItOutEnabled: true
|
||||
docExpansion: none
|
||||
# 扫描的包路径,指定Controller所在的包
|
||||
packages-to-scan: com.integration.api.controller
|
||||
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
root: INFO
|
||||
com.xbb.api: DEBUG
|
||||
org.springframework.web: INFO
|
||||
org.hibernate: WARN
|
||||
file:
|
||||
name: logs/api-demo.log
|
||||
max-size: 10MB
|
||||
max-history: 30
|
||||
pattern:
|
||||
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
|
||||
Reference in New Issue
Block a user