2021-01-01 01:52:14 +08:00
|
|
|
|
spring:
|
2021-01-03 01:45:20 +08:00
|
|
|
|
application:
|
|
|
|
|
name: dashboard
|
2021-01-26 21:33:15 +08:00
|
|
|
|
|
2021-02-06 21:18:43 +08:00
|
|
|
|
# 数据源配置项 TODO 多数据源;TODO 监控配置
|
|
|
|
|
datasource:
|
|
|
|
|
url: jdbc:mysql://127.0.1:33061/ruoyi-vue-pro?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT
|
|
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
|
username: root
|
|
|
|
|
password: 123456
|
|
|
|
|
|
2021-01-26 21:33:15 +08:00
|
|
|
|
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
2021-01-02 13:13:08 +08:00
|
|
|
|
redis:
|
2021-01-26 21:33:15 +08:00
|
|
|
|
host: 127.0.0.1 # 地址
|
|
|
|
|
port: 6379 # 端口
|
|
|
|
|
database: 0 # 数据库索引
|
|
|
|
|
|
2021-01-14 21:20:32 +08:00
|
|
|
|
# Servlet 配置
|
|
|
|
|
servlet:
|
|
|
|
|
# 文件上传相关配置项
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 16MB # 单个文件大小
|
|
|
|
|
max-request-size: 32MB # 设置总上传的文件大小
|
2021-01-26 21:33:15 +08:00
|
|
|
|
|
2021-01-23 23:26:38 +08:00
|
|
|
|
# Spring Boot Admin 配置项
|
|
|
|
|
boot:
|
|
|
|
|
admin:
|
|
|
|
|
# Spring Boot Admin Client 客户端的相关配置
|
|
|
|
|
client:
|
|
|
|
|
url: http://127.0.0.1:8080/${spring.boot.admin.context-path} # 设置 Spring Boot Admin Server 地址
|
|
|
|
|
# Spring Boot Admin Server 服务端的相关配置
|
|
|
|
|
context-path: /admin # 配置 Spring
|
2021-01-26 21:33:15 +08:00
|
|
|
|
|
2021-01-24 12:15:59 +08:00
|
|
|
|
# Jackson 配置项
|
|
|
|
|
jackson:
|
|
|
|
|
serialization:
|
2021-01-28 01:34:49 +08:00
|
|
|
|
write-dates-as-timestamps: true # 设置 Date 的格式,使用时间戳
|
2021-01-24 12:15:59 +08:00
|
|
|
|
write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
|
2021-01-28 01:34:49 +08:00
|
|
|
|
write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
|
|
|
|
|
fail-on-empty-beans: false # 允许序列化无属性的 Bean
|
2021-01-02 13:13:08 +08:00
|
|
|
|
|
2021-02-10 13:41:00 +08:00
|
|
|
|
# main:
|
|
|
|
|
# lazy-initialization: true # TODO 芋艿:本地开发环境,可以配置下 lazy 延迟加载
|
2021-02-02 01:07:11 +08:00
|
|
|
|
|
2021-01-02 13:13:08 +08:00
|
|
|
|
# 芋道配置项,设置当前项目所有自定义的配置
|
|
|
|
|
yudao:
|
2021-01-29 22:47:03 +08:00
|
|
|
|
version: 1.0.0
|
2021-01-03 03:21:35 +08:00
|
|
|
|
web:
|
|
|
|
|
api-prefix: /api
|
2021-01-24 02:08:36 +08:00
|
|
|
|
controller-package: cn.iocoder.dashboard
|
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
|
2021-01-23 22:03:06 +08:00
|
|
|
|
mock-secret: test
|
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-14 21:20:32 +08:00
|
|
|
|
file:
|
|
|
|
|
base-path: http://127.0.0.1:1024/api/file/get/
|
2021-01-08 21:36:51 +08:00
|
|
|
|
|
2021-01-20 17:12:27 +08:00
|
|
|
|
# Apollo 配置中心
|
|
|
|
|
apollo:
|
|
|
|
|
bootstrap:
|
2021-01-21 00:52:25 +08:00
|
|
|
|
enabled: true # 设置 Apollo 在启动阶段生效
|
2021-01-20 17:12:27 +08:00
|
|
|
|
eagerLoad:
|
2021-01-21 00:52:25 +08:00
|
|
|
|
enabled: true # 设置 Apollo 在日志初始化前生效,可以实现日志的动态级别配置
|
2021-01-21 09:13:51 +08:00
|
|
|
|
jdbc: # 自定义的 JDBC 配置项,用于数据库的地址
|
|
|
|
|
url: ${spring.datasource.url}
|
|
|
|
|
username: ${spring.datasource.username}
|
|
|
|
|
password: ${spring.datasource.password}
|
2021-01-20 17:12:27 +08:00
|
|
|
|
|
2021-01-08 21:36:51 +08:00
|
|
|
|
# MyBatis Plus 的配置项
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
configuration:
|
|
|
|
|
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
|
2021-02-02 01:07:11 +08:00
|
|
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印日志
|
2021-01-08 21:36:51 +08:00
|
|
|
|
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
|
2021-01-23 23:26:38 +08:00
|
|
|
|
|
|
|
|
|
# Actuator 监控端点的配置项
|
|
|
|
|
management:
|
|
|
|
|
endpoints:
|
|
|
|
|
web:
|
|
|
|
|
exposure:
|
|
|
|
|
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|