# WEB服务器配置
|
server:
|
compression:
|
enabled: true
|
mime-types: application/json
|
|
tomcat:
|
max-swallow-size: -1
|
servlet:
|
session:
|
timeout: PT3H #表示12小时
|
|
spring:
|
# 数据源配置
|
datasource:
|
url: jdbc:mysql://192.168.0.211:3306/pre_select_sass?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
|
username: root
|
password: Doumee@168
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
redis:
|
# database: 0
|
host: 127.0.0.1
|
port: 6379
|
password:
|
timeout: 5000 # 连接池中的最小空闲连接
|
|
jackson:
|
time-zone: GMT+8
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
knife4j:
|
enable: true
|
basic:
|
enable: true
|
username: admin
|
password: 111111
|
|
debug_model: true
|
|
captcha_check: false
|
|
# Swagger配置
|
swagger:
|
host:
|
title: ${project.name}接口文档
|
description: ${project.name}接口文档
|
enabled: true
|
# 禁用swagger时的重定向地址
|
redirect-uri: /
|
|
project:
|
imgAuthen: false
|