p-honggang.li
5 天以前 0cd898baff5f2838e47771a0471a7dbb88dd65ab
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
server:
  port: 8089
  servlet:
    context-path: /admin
  tomcat:
    max-swallow-size: 500MB
 
spring:
  application:
    name: trade-back
  profiles:
    active: prod
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
    serialization:
      write-dates-as-timestamps: false
  #mcv配置
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  servlet:
    multipart:
      max-file-size: 500MB
      max-request-size: 500MB
 
# MyBatis Plus配置
mybatis-plus:
  configuration:
    # 开启驼峰命名
    map-underscore-to-camel-case: true
    # 开启sql日志
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  global-config:
    db-config:
      # 主键类型
      id-type: auto
      # 逻辑删除配置
  mapper-locations: classpath*:/mapper/**/*.xml
 
# 日志配置
logging:
  level:
    com.webmanage: debug
    org.springframework.web: debug
  pattern:
    console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{50} - %msg%n"
 
# Knife4j配置
knife4j:
  enable: true
  setting:
    language: zh-CN
    enable-swagger-models: true
    enable-document-manage: true
    swagger-model-name: 实体类列表
  basic:
    enable: false
 
# 购物车配置
cart:
  # Redis缓存过期时间(天)
  expire-days: 30
  # 是否启用数据库持久化
  enable-persistence: true
  # 是否启用数据一致性检查
  enable-consistency-check: true
  # 同步策略:realtime(实时同步)、batch(批量同步)、manual(手动同步)
  sync-strategy: realtime
  async:
    executor:
      core-pool-size: 4
      max-pool-size: 16
      queue-capacity: 500
      keep-alive-seconds: 60
      thread-name-prefix: async-cart-
      wait-for-tasks-to-complete-on-shutdown: true
      await-termination-seconds: 30
 
# 工作流配置
workflow:
  # 审批服务配置
  approval:
    base-url: http://192.168.20.51:7098
    template-relation-url: /approval/templateRelation/relationByType
    unit-id: "1"
  # 工作流服务配置
  process:
    base-url: http://192.168.20.51:7098
    # base-url: http://36.133.126.111:7098
    start-process-url: /app/workflow/startProcessAndComplete
    find-todo-url: /app/workflow/findToList
    find-done-url: /app/workflow/findHistoryByPage
    complete-url: /app/workflow/complete
    reject-url: /app/workflow/rejectStartNode
  # RestTemplate超时配置
  rest-template:
    connect-timeout: 5000  # 连接超时时间(毫秒)
    read-timeout: 10000    # 读取超时时间(毫秒)