62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
# spring配置
|
||
spring:
|
||
data:
|
||
redis:
|
||
host: localhost
|
||
port: 6379
|
||
password:
|
||
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://127.0.0.1:3306/ry-cloud?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||
username: root
|
||
password: Root123
|
||
|
||
# mybatis配置
|
||
mybatis:
|
||
# 搜索指定包别名
|
||
typeAliasesPackage: com.ruoyi.airline
|
||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||
mapperLocations: classpath:mapper/airline/**/*.xml
|
||
|
||
# springdoc配置
|
||
springdoc:
|
||
gatewayUrl: http://ruoyi-gateway:8080/${spring.application.name}
|
||
api-docs:
|
||
# 是否开启接口文档
|
||
enabled: true
|
||
info:
|
||
# 标题
|
||
title: '拓恒航线模块接口文档'
|
||
# 描述
|
||
description: '拓恒航线模块接口描述'
|
||
# 作者信息
|
||
contact:
|
||
name: TuoHeng
|
||
url: https://ruoyi.vip
|