2025-06-10 18:07:21 +08:00

84 lines
2.8 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.

logging:
pattern:
console: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint}|%clr(%5p)|%clr(${PID:- }){magenta}|%clr(%15.15t){faint}|%clr(${spring.application.name}){cyan}|%clr(%X{X-B3-TraceId:-N/A}){blue}|%X{X-B3-SpanId:-N/A}|%clr(%-40.40logger{39}){cyan}|%m%n%wEx"
file: ${logging.pattern.console}
level:
com.lframework: DEBUG
spring:
servlet:
multipart:
#临时文件路径
location: C:\tmp\tmp-datas
datasource:
dynamic:
# 设置默认数据源
primary: master
# 是否严格匹配数据源 未匹配到指定数据源时true抛异常,false使用默认数据源
strict: true
datasource:
master:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://114.67.216.129:3306/platform?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useAffectedRows=true&serverTimezone=Asia/Shanghai
username: root
password: xinan123
druid:
initial-size: 10
min-idle: 10
max-active: 200
max-wait: 60000
time-between-eviction-runs-millis: 300000
validation-query: SELECT 'x'
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
filters: stat
#redis配置这个redis用来缓存业务数据
redis:
#地址
host: 127.0.0.1
#端口默认为6379
port: 6379
#数据库
database: 0
#密码
password:
#连接超时时间
timeout: 10s
lettuce:
pool:
#连接池中的最小空闲连接
min-idle: 0
#连接池中的最大空闲连接
max-idle: 8
#连接池的最大数据库连接数
max-active: 8
#连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
sa-token:
# 配置 Sa-Token 单独使用的 Redis 连接,将业务和鉴权独立
alone-redis:
# Redis数据库索引默认为0最好与业务数据的redis隔离
database: 1
# Redis服务器地址
host: ${spring.redis.host}
# Redis服务器连接端口
port: ${spring.redis.port}
# Redis服务器连接密码默认为空
password: ${spring.redis.password}
# 连接超时时间
timeout: ${spring.redis.timeout}
jugg:
upload:
#下载时的baseUrl与domain的区别会在url后面拼接/**作为静态资源的url而domain是后端系统的具体域名下载时的完整url例如upload.domain + upload.url/xxx.jpg /oss
url: /images/erp/upload-data
#下载时的域名
domain: http://192.168.50.71:8088
#上传文件的路径D:\upload\upload-data
location: C:\images\erp\upload-data