2024-12-06 22:42:03 +08:00
|
|
|
|
spring:
|
|
|
|
|
servlet:
|
|
|
|
|
multipart:
|
|
|
|
|
enabled: true #默认支持文件上传
|
|
|
|
|
max-file-size: 50MB #不做限制
|
|
|
|
|
max-request-size: 50MB #不做限制
|
|
|
|
|
|
|
|
|
|
datasource:
|
|
|
|
|
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
2024-12-09 18:11:02 +08:00
|
|
|
|
url: jdbc:p6spy:mysql://127.0.0.1:3306/ddxhs?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
2024-12-06 22:42:03 +08:00
|
|
|
|
username: root
|
|
|
|
|
password: admin
|
2024-12-27 17:22:59 +08:00
|
|
|
|
# url: jdbc:p6spy:mysql://8.146.211.120:3306/ddxhs?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
|
|
|
|
# username: root
|
|
|
|
|
# password: wxlwxl12
|
2024-12-06 22:42:03 +08:00
|
|
|
|
|
|
|
|
|
jackson:
|
|
|
|
|
#配置日期返回格式
|
|
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
|
|
|
time-zone: GMT+8
|
|
|
|
|
dd:
|
|
|
|
|
uploadPath: c:/ddStore/
|
|
|
|
|
|
|
|
|
|
knife4j:
|
|
|
|
|
enable: true
|
|
|
|
|
#here is the importance configs of JWT
|
|
|
|
|
jwt:
|
|
|
|
|
header: Authorization #请求头权限标识
|
2025-01-03 20:12:55 +08:00
|
|
|
|
expiration: 2592000 #7天 604800 30天2,592,000 60*60*24*365
|
2024-12-06 22:42:03 +08:00
|
|
|
|
secret: security
|
|
|
|
|
# 配置不需要认证的接口
|
|
|
|
|
ignores:
|
|
|
|
|
# 需要过滤的 post 请求
|
|
|
|
|
post:
|
|
|
|
|
- "/admin/login/**"
|
|
|
|
|
# 需要过滤的 get 请求
|
|
|
|
|
get:
|
|
|
|
|
- "/favicon.ico"
|
|
|
|
|
# 需要过滤的请求,不限方法
|
|
|
|
|
pattern:
|
2024-12-09 18:11:02 +08:00
|
|
|
|
- "/api/**"
|
2024-12-19 17:38:21 +08:00
|
|
|
|
- "/appUpload/**"
|
2024-12-06 22:42:03 +08:00
|
|
|
|
- "/upload/**"
|
2024-12-22 23:39:26 +08:00
|
|
|
|
- "/appUpload/**"
|
2024-12-06 22:42:03 +08:00
|
|
|
|
- "/doc.html"
|
|
|
|
|
- "/swagger-resources/**"
|
|
|
|
|
- "/v2/api-docs/**"
|
|
|
|
|
- "/webjars/**"
|
|
|
|
|
- "/**.txt"
|
|
|
|
|
#================================================= mybatis-plus start =================================================
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
#配置文件
|
|
|
|
|
mapper-locations: classpath*:com/dd/admin/system/*/mapper/xml/*Mapper.xml,com/dd/admin/business/*/mapper/xml/*Mapper.xml
|
|
|
|
|
configuration:
|
|
|
|
|
log-impl:
|
|
|
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
|
#================================================= mybatis-plus end ===================================================
|
|
|
|
|
|
2024-12-22 23:39:26 +08:00
|
|
|
|
server:
|
2024-12-27 17:22:59 +08:00
|
|
|
|
port: 8080
|
2024-12-28 13:20:14 +08:00
|
|
|
|
|
|
|
|
|
tio:
|
|
|
|
|
websocket:
|
|
|
|
|
server:
|
|
|
|
|
port: 9326
|
2025-01-07 21:16:31 +08:00
|
|
|
|
heartbeat-timeout: 10000
|
2024-12-28 13:20:14 +08:00
|
|
|
|
# 集群配置 默认关闭
|
|
|
|
|
cluster:
|
|
|
|
|
enabled: false
|
|
|
|
|
# 集群是通过redis的Pub/Sub实现,所以需要配置Redis
|
|
|
|
|
redis:
|
|
|
|
|
ip: 127.0.0.1
|
|
|
|
|
port: 6379
|
|
|
|
|
all: true
|
|
|
|
|
group: true
|
|
|
|
|
ip: true
|
|
|
|
|
user: true
|