jiangping
2024-09-09 c47f7b9c4899036c52ad0e4f46c4aff7102110bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# 项目信息配置
project:
  name: 安泰物流访客系统
  version: 1.0.0
  env: development
#  env: production
 
 
spring:
  application:
    name: system_gateway
#  profiles:
#    active: dev
 
  # JSON返回配置
  jackson:
    # 默认时区
    time-zone: GMT+8
    # 默认日期格式化
    date-format: yyyy-MM-dd HH:mm:ss
  servlet:
    multipart:
      max-file-size: 200MB
      max-request-size: 200MB
      enabled: true
  main:
    allow-circular-references: true
    web-application-type: reactive
# MyBatis配置
mybatis-plus:
  mapper-locations: classpath*:/mappers/**/*.xml
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 
# 缓存内容设置
cache:
  session:
    # 会话过期时长(s)
    expire: 18000
  captcha:
    # 验证码过期时长(s)
    expire: 300
 
# 跟踪日志
trace:
  # 开启智能跟踪模式
  smart: true
  # 排除跟踪的URL正则
  exclude-patterns: .+/list[a-zA-Z0-9\-\_]*$, .+/tree[a-zA-Z0-9\-\_]*$, .+/page[a-zA-Z0-9\-\_]*$, .+/all[a-zA-Z0-9\-\_]*$, /swagger-resources.*
 
# 日志配置
logback:
  level: INFO
  appender: ${project.env}
# dao层的日志设置为debug,方便查看sql
logging:
  level:
    com.doumee.dao: debug
 
knife4j:
  enable: true
  basic:
    enable: true
    username: admin
    password: 123456
  main:
    allow-circular-references: true
 
auth:
  jwt:
    enabled: true   #是否开启JWT登录认证功能
    secret: fjkfaf;afa  # JWT私钥,用于校验JWT令牌的合法性
    expiration: 36000000 #JWT令牌的有效期,用于校验JWT令牌的合法性
    header: JWTHeaderName #HTTP请求的Header名称,该Header作为参数传递JWT令牌
    userParamName: username  #用户登录认证用户名参数名称
    pwdParamName: password  #用户登录认证密码参数名称
    useDefaultController: true # 是否使用默认的JwtAuthController
 
# WEB服务器配置
server:
  compression:
    enabled: true
    mime-types: application/json
  port: 10010
 
  tomcat:
    max-swallow-size: -1
  servlet:
    session:
      timeout: PT3H  #表示12小时
 
 
gateway:
  loginFilterFolders:
    - /login
    - /biz/
  skipLoginFilterUrls:
    - /meetingAdmin/**
    - /visitsAdmin/**
    - /login
    - /captcha
    - /doc.html
    - /v2/api-docs/**
    - /**.js
    - /**.html