2021-01-01 01:52:14 +08:00
|
|
|
|
spring:
|
2021-01-03 01:45:20 +08:00
|
|
|
|
application:
|
|
|
|
|
name: dashboard
|
2021-01-02 13:13:08 +08:00
|
|
|
|
# 数据源配置项 TODO 多数据源;TODO 监控配置
|
2021-01-01 01:52:14 +08:00
|
|
|
|
datasource:
|
2021-01-06 01:45:32 +08:00
|
|
|
|
url: jdbc:mysql://127.0.1:33061/ruoyi-vue-pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
|
2021-01-01 01:52:14 +08:00
|
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
|
username: root
|
|
|
|
|
password: 123456
|
2021-01-02 13:13:08 +08:00
|
|
|
|
# redis 配置 TODO 需要进行下,对接到 redisson
|
|
|
|
|
redis:
|
|
|
|
|
# 地址
|
|
|
|
|
host: localhost
|
|
|
|
|
# 端口,默认为6379
|
|
|
|
|
port: 6379
|
|
|
|
|
# 数据库索引
|
|
|
|
|
database: 0
|
|
|
|
|
# 连接超时时间
|
|
|
|
|
timeout: 10s
|
|
|
|
|
|
|
|
|
|
# 芋道配置项,设置当前项目所有自定义的配置
|
|
|
|
|
yudao:
|
2021-01-03 03:21:35 +08:00
|
|
|
|
web:
|
|
|
|
|
api-prefix: /api
|
2021-01-02 13:13:08 +08:00
|
|
|
|
security:
|
|
|
|
|
token-header: Authorization
|
|
|
|
|
token-secret: abcdefghijklmnopqrstuvwxyz
|
2021-01-03 01:45:20 +08:00
|
|
|
|
token-timeout: 1d
|
|
|
|
|
session-timeout: 30m
|
2021-01-03 12:15:16 +08:00
|
|
|
|
mock-enable: true
|
|
|
|
|
mock-secret: yudaoyuanma
|
2021-01-02 13:13:08 +08:00
|
|
|
|
swagger:
|
|
|
|
|
title: 管理后台
|
|
|
|
|
description: 提供管理员管理的所有功能
|
|
|
|
|
version: 1.0.0
|
|
|
|
|
base-package: cn.iocoder.dashboard.modules
|
2021-01-03 01:45:20 +08:00
|
|
|
|
captcha:
|
|
|
|
|
timeout: 5m
|
|
|
|
|
width: 160
|
|
|
|
|
height: 60
|
2021-01-08 21:36:51 +08:00
|
|
|
|
|
|
|
|
|
# MyBatis Plus 的配置项
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
configuration:
|
|
|
|
|
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
|
|
|
|
|
global-config:
|
|
|
|
|
db-config:
|
|
|
|
|
id-type: auto # 自增 ID
|
|
|
|
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
|
|
|
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
|
|
|
|
mapper-locations: classpath*:mapper/*.xml
|
|
|
|
|
type-aliases-package: cn.iocoder.dashboard.modules.*.dal.mysql.dataobject
|