| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- server:
- shutdown: immediate
- port: 8083
- servlet:
- context-path: /api
- spring:
- integration:
- mqtt:
- url: tcp://192.168.100.102:1883 # MQTT服务器地址
- username: admin # 可选:MQTT用户名
- password: tr123456. # 可选:MQTT密码
- subClientId: spring-integration-mqtt-client # 客户端ID(保证唯一)
- pubClientId: spring-integration-mqtt-client
- subTopic: device/data/+ # 订阅的主题(支持多主题,用逗号分隔)
- # qos: 1 # QoS级别(0/1/2)
- lifecycle:
- timeout-per-shutdown-phase: 10s
- datasource:
- type: com.zaxxer.hikari.HikariDataSource
- driverClassName: org.postgresql.Driver
- url: jdbc:postgresql://172.31.18.78:5432/phototherapy?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&useInformationSchema=true&stringtype=unspecified
- username: postgres
- password: Qwepostgres
- hikari:
- minimum-idle: 5
- maximum-pool-size: 20
- connection-timeout: 5000
- idle-timeout: 300000
- max-lifetime: 600000
- pool-name: HikariPool-1
- data:
- redis:
- # 地址
- host: 172.31.18.78
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 0
- # 密码
- password: root
- # 连接超时时间
- timeout: 30s
- # 客户端名称
- client-name:
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 16
- # 连接池中的最大空闲连接
- max-idle: 16
- # 连接池的最大数据库连接数
- max-active: 16
- # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- # 关闭超时时间
- shutdown-timeout: 100ms
- cache:
- type: redis
- redis:
- # 缓存过期时间(7天)
- time-to-live: 604800000
- # 缓存键前缀
- key-prefix: cache
- # 是否使用键前缀
- use-key-prefix: true
- # 是否缓存空值
- cache-null-values: true
- profiles:
- active: flyway,sys
- # MQTT配置(spring-integration-mqtt专用)
- #mybatis配置
- mybatis-plus:
- mapper-locations: classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml,classpath*:mapper/*/*.xml
- configuration:
- log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
- #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- global-config:
- db-config:
- logic-delete-value: 1
- logic-delete-field: isDeleted
- logic-not-delete-value: 0
- langchain4j:
- open-ai:
- chat-model:
- api-key: "sk-2f8229627f104a18a1fb90c98e9ea48f" # 替换为您的DeepSeek API密钥
- model-name: "deepseek-chat" # 使用DeepSeek模型名称
- base-url: "https://api.deepseek.com/v1" # 添加DeepSeek API的基础URL
- log-requests: true
- log-responses: true
- streaming-chat-model:
- api-key: "sk-2f8229627f104a18a1fb90c98e9ea48f" # 替换为您的DeepSeek API密钥
- model-name: "deepseek-chat" # 使用DeepSeek模型名称
- base-url: "https://api.deepseek.com/v1" # 添加DeepSeek API的基础URL
- log-requests: true
- log-responses: true
- tr:
- storage:
- previewUrl: https://exam.tuoren.com/onlinePreview?url=
- satoken:
- enable: true
- ignore-urls:
- - /error
- - /actuator/**
- - /druid/**
- - /*.html
- - /**/*.html
- - /swagger-resources/**
- - /swagger-ui/**
- - /v3/**
- - /webjars/**
- - /v3/api-docs/**
- tenant:
- ignore-tables:
- - gen_config
- - gen_basic
- - sys_menu
- - sys_role_menu
- - sys_dict
- - sys_dict_item
- - sys_user_position
- # 租户模块
- - sys_tenant
- - sys_tenant_package
- - sys_tenant_package_menu
- - sys_user_role
- - sys_portal_menu
- - sys_user_portal
- # 短信模块
- - sys_sms_temp
- - sys_sms_channel
- - sys_sms_log
- # 编号策略
- - sys_numbering_strategy
- # 任务调度模块
- - sys_job
- - sys_job_log
- # 存储模块
- - sys_storage_config
- - sys_storage_file
- # 导入导出模块
- - sys_export_sheet
- - sys_export_row
- enable: false
- sa-token:
- is-read-header: true
- # token名称 (同时也是cookie名称)
- token-name: Authorization
- # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
- is-concurrent: true
- # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
- is-share: false
- # 是否打开续签
- auto-renew: true
- # 是否输出操作日志
- is-log: false
- # 同一账号登录数量不做限制
- max-login-count: -1
- timeout: 86400
- logging:
- config: classpath:log4j2.xml
- springdoc:
- swagger-ui:
- path: /swagger-ui.html
- group-configs:
- - group: 'sys'
- display-name: 系统管理
- packages-to-scan:
- - cn.tr.module.sys
- - cn.tr.module.excel
- - cn.tr.module.gen.modular.basic.controller
- - group: 'phototherapy'
- display-name: 平台管理端
- packages-to-scan:
- - cn.tr.module.phototherapy
- - group: 'client'
- display-name: 平台用户端
- packages-to-scan:
- - cn.tr.module.client
- show-actuator: true
- api-docs:
- enabled: true
- path: /v3/api-docs
- knife4j:
- setting:
- enable-footer: false
- enable-footer-custom: true
- footer-custom-content: Apache License 2.0 | Copyright 2019-[驼人控股集团](https://www.tuoren.com/about/index.html)
- enable-response-code: false
- third:
- kuaishou:
- app-id: ks713539069371564207
- app-secret: ikz830R8InSkAGmY3xgvIA
- redirect-uri: https://www.dcliu.xyz/api/third/kuaiShou/callback
- xhs:
- app-id: red.lf8Vk0PBvpjfW7Sr
- app-secret: de1f81769ac5449cbe63b473bd733b40
|