无关风月
2024-12-31 bf765893039bc7968b8160a70bda778526dca98c
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
server:
  port: 9093
  tomcat:
    max-swallow-size: 500MB
#  servlet:
#    context-path: /app
spring:
  thymeleaf:
    cache: false
  servlet:
    multipart:
      max-file-size: 500MB
      max-request-size: 500MB
      resolve-lazily: true #设置为懒加载,不然依然会捕获不到异常
  profiles:
    active: prod
  main:
    allow-bean-definition-overriding: true
#  rabbitmq:
#    host: localhost
#    port: 5672
#    username: guest #正式环境
#    password: guest #正式环境
  #sagger文档属性配置
  mvc:
    static-path-pattern: /**
    pathmatch:
      matching-strategy: ant_path_matcher
web:
  swagger:
    enabled: true
    service-url: /
    title: 小程序-接口文档
    description: 请求方式(application/json; charset=utf-8)
    contact:
      email: chenkun@lingser.com
      name: 无关风月
    req-fixed-parameters:
      - { paramKey: 'token', description: '登录返回的token',required: false }
# mybatis
mybatis-plus:
  # 此处在多数据源中生效
  config-location: classpath:/mybatis-config.xml
  global-config:
    banner: false
    db-config:
      logic-not-delete-value: 0
      logic-delete-value: 1
  # 指定Mapper文件位置
  mapper-locations: classpath*:mapping/*.xml
logging:
  file:
    #   path 及 name只能二选一,自定义名称选name,path的默认文件名spring.log
    #   path: /logs
    name: logs/app.log
  logback:
    rollingpolicy:
      max-history: 3
  level:
    com:
      sales:
        manage: debug
debug: true
# 微信SDK
wx:
  conf:
    # 开启或关闭,默认开启,当支付信息无效时不能正常启动项目,可设为false
    enabled: true
    appId: wxb17e909bb2b1975f
    secretId: eee8aae16bab075f1b3e51784e5dff6d
    templateApproveId: jAt2UR8LtaDplqwHQFmAjvaqdLY0WVo16CVYKoZtcuo #申请审批消息模板id
#OSS及短信配置
oss:
  config:
    templateCodeTest: "SMS_154950909"
    signNameTest: "阿里云短信测试"
 
    accessKeyId: LTAI5tPFeEGX87j4bwcmjyqV
    accessKeySecret: lRVBAYB7bTVAMd0OjakACAALG0jFXl
    endpoint: oss-cn-shanghai.aliyuncs.com
    bucketName: sales-bucket
    cdn:
    signName: "药零科技"
    templateCode: SMS_244030342
 
    shareTemplateCode: SMS_251096901
 
file:
  url:
    ae: https://xsbf-2022.oss-cn-shanghai.aliyuncs.com/sales/1662966519668SAFETY%20DATA%20AND%20QUALITY%281%29.docx
    sign: https://nn-bucket.oss-cn-shanghai.aliyuncs.com/sales/1663849389027%E7%AD%BE%E5%88%B0%E8%A1%A8%EF%BC%88%E4%B8%8B%E8%BD%BD%E6%A8%A1%E6%9D%BF%EF%BC%89.docx
    cost: https://xsbf-2022.oss-cn-shanghai.aliyuncs.com/sales/1662966747647%E8%B4%B9%E7%94%A8%E7%A1%AE%E8%AE%A4%E8%A1%A8%E6%A8%A1%E6%9D%BF.xlsx
    beforeActivityUrl: https://nn-bucket.oss-cn-shanghai.aliyuncs.com/sales/1663849178786%E6%B4%BB%E5%8A%A8%E5%89%8D%E8%AE%B2%E8%80%85%E6%9C%8D%E5%8A%A1%E5%8D%8F%E8%AE%AE-%E5%8D%95%E6%AC%A1%E8%AE%B2%E8%AF%BE%EF%BC%88%E4%B8%8B%E8%BD%BD%E6%A8%A1%E6%9D%BF%EF%BC%89.docx
    afterActivityUrl: https://nn-bucket.oss-cn-shanghai.aliyuncs.com/sales/1663849357042%E6%B4%BB%E5%8A%A8%E5%90%8E%E8%AE%B2%E8%80%85%E7%A1%AE%E8%AE%A4%E4%B9%A6%EF%BC%88%E4%B8%8B%E8%BD%BD%E6%A8%A1%E7%89%88%EF%BC%89.docx
    yaoqinghanUrl: https://nn-bucket.oss-cn-shanghai.aliyuncs.com/sales/1666341482675%E4%BC%9A%E8%AE%AE%E9%82%80%E8%AF%B7%E5%87%BD.docx
  uri: https://nncdn.pharmacylinked.com
#测试环境
---
spring:
  config:
    activate:
      on-profile: dev
  # 数据源
  datasource:
    username: root #测试环境
    password: 123456
    url: jdbc:mysql://127.0.0.1:3306/eyes?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    hikari:
      minimum-idle: 10
      # 连接池大小 = (核心数*2 + 有效磁盘数)
      maximum-pool-size: 5
      auto-commit: true
      idle-timeout: 30000
      pool-name: DatebookHikariCP-Applet
      max-lifetime: 1800000
      connection-timeout: 30000
      connection-test-query: SELECT 1
  redis:
    #测试环境
    host: 127.0.0.1
    port: 6379
    timeout: 5000
    database: 10
    password: 123456
alipay:
  appid: ""
  appPrivateKey: ""
  alipayPublicKey: ""
  alipay_public_key: ""
wx:
  appid: ""
  mchId: ""
  key:
callbackPath: ""
 
hw:
  sms:
    url: "url"
    appKey: "appKey"
    appSecret: "appSecret"
    sender: "sender"
    templateId: "templateId"
    signature: "signature"
 
#正式环境
---
spring:
  config:
    activate:
      on-profile: prod
  # 数据源
  datasource:
    username: root
    password: 123456
    url: jdbc:mysql://127.0.0.1:3306/eyes?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
    type: com.zaxxer.hikari.HikariDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    hikari:
      minimum-idle: 10
      # 连接池大小 = (核心数*2 + 有效磁盘数)
      maximum-pool-size: 5
      auto-commit: true
      idle-timeout: 30000
      pool-name: DatebookHikariCP-Applet
      max-lifetime: 1800000
      connection-timeout: 30000
      connection-test-query: SELECT 1
  redis:
    host: 120.26.112.122
    port: 6379
    timeout: 5000
    database: 1
    password: xsbf@2022
alipay:
  appid: ""
  appPrivateKey: ""
  alipayPublicKey: ""
  alipay_public_key: ""
wx:
  appid: ""
  mchId: ""
  key:
callbackPath: ""
 
 
hw:
  sms:
    url: "url"
    appKey: "appKey"
    appSecret: "appSecret"
    sender: "sender"
    templateId: "templateId"
    signature: "signature"