63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
server:
|
|
port: 8080
|
|
servlet:
|
|
context-path: /api
|
|
|
|
spring:
|
|
datasource:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://localhost:3306/wuhan_saga?serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8
|
|
username: root
|
|
password: 135827
|
|
druid:
|
|
initial-size: 5
|
|
min-idle: 5
|
|
max-active: 20
|
|
max-wait: 60000
|
|
time-between-eviction-runs-millis: 60000
|
|
min-evictable-idle-time-millis: 300000
|
|
validation-query: SELECT 1
|
|
test-while-idle: true
|
|
test-on-borrow: false
|
|
test-on-return: false
|
|
sql:
|
|
init:
|
|
mode: never
|
|
data:
|
|
redis:
|
|
host: localhost
|
|
port: 6379
|
|
database: 0
|
|
timeout: 5000ms
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 50MB
|
|
max-request-size: 100MB
|
|
|
|
mybatis:
|
|
mapper-locations: classpath:mapper/**/*.xml
|
|
type-aliases-package: com.wuhansaga.server.entity
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
sa-token:
|
|
token-name: Authorization
|
|
timeout: 86400
|
|
active-timeout: -1
|
|
is-concurrent: true
|
|
is-share: true
|
|
token-style: uuid
|
|
is-log: false
|
|
|
|
knife4j:
|
|
enable: true
|
|
setting:
|
|
language: zh_cn
|
|
|
|
upload:
|
|
path: uploads/
|
|
allowed-types: image/jpeg,image/png,image/gif,image/webp,image/svg+xml,video/mp4,video/webm
|
|
max-size: 52428800
|