66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
# spring配置
|
||
spring:
|
||
data:
|
||
redis:
|
||
host: * # 替换自己的ip地址
|
||
port: 6379
|
||
datasource:
|
||
druid:
|
||
stat-view-servlet:
|
||
enabled: true
|
||
loginUsername: ruoyi
|
||
loginPassword: 123456
|
||
dynamic:
|
||
druid:
|
||
initial-size: 5
|
||
min-idle: 5
|
||
maxActive: 20
|
||
maxWait: 60000
|
||
connectTimeout: 30000
|
||
socketTimeout: 60000
|
||
timeBetweenEvictionRunsMillis: 60000
|
||
minEvictableIdleTimeMillis: 300000
|
||
validationQuery: SELECT 1 FROM DUAL
|
||
testWhileIdle: true
|
||
testOnBorrow: false
|
||
testOnReturn: false
|
||
poolPreparedStatements: true
|
||
maxPoolPreparedStatementPerConnectionSize: 20
|
||
filters: stat,slf4j
|
||
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
||
datasource:
|
||
# 主库数据源
|
||
master:
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
url: jdbc:mysql://ip:port/ry_cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||
username: root
|
||
password: * # 替换自己的密码
|
||
# 从库数据源
|
||
# slave:
|
||
# username:
|
||
# password:
|
||
# url:
|
||
# driver-class-name:
|
||
|
||
# mybatis配置
|
||
mybatis:
|
||
# 搜索指定包别名
|
||
typeAliasesPackage: com.ruoyi.system
|
||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||
mapperLocations: classpath:mapper/**/*.xml
|
||
|
||
# springdoc配置
|
||
springdoc:
|
||
gatewayUrl: http://localhost:8080/${spring.application.name}
|
||
api-docs:
|
||
# 是否开启接口文档
|
||
enabled: true
|
||
info:
|
||
# 标题
|
||
title: '系统模块接口文档'
|
||
# 描述
|
||
description: '系统模块接口描述'
|
||
# 作者信息
|
||
contact:
|
||
name: RuoYi
|
||
url: https://ruoyi.vip |