蔡洪呈 před 2 roky
rodič
revize
f7997860d8
1 změnil soubory, kde provedl 288 přidání a 0 odebrání
  1. 288 0
      common-api/src/main/resources/application.yml.bak

+ 288 - 0
common-api/src/main/resources/application.yml.bak

@@ -0,0 +1,288 @@
1
+server:
2
+  port: 8890
3
+
4
+  servlet:
5
+    context-path: /
6
+
7
+  tomcat:
8
+    uri-encoding: UTF-8
9
+    threads:
10
+      min-spare: 50
11
+      max: 1000
12
+
13
+# 与Spring Boot 2一样,默认情况下,大多数端点都不通过http公开,我们公开了所有端点。对于生产,您应该仔细选择要公开的端点。
14
+management:
15
+  #  health:
16
+  #    elasticsearch:
17
+  #      enabled: false
18
+  #    datasource:
19
+  #      enabled: false
20
+  endpoints:
21
+    web:
22
+      exposure:
23
+        include: '*'
24
+spring:
25
+  application:
26
+    name: common-api
27
+  # 要在其中注册的Spring Boot Admin Server的URL。
28
+  boot:
29
+    admin:
30
+      client:
31
+        url: http://127.0.0.1:8000
32
+  cache:
33
+    type: redis
34
+  # Redis
35
+  redis:
36
+    host: 127.0.0.1
37
+    port: 6379
38
+    password: lilishop
39
+    lettuce:
40
+      pool:
41
+        # 连接池最大连接数(使用负值表示没有限制) 默认 8
42
+        max-active: 200
43
+        # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
44
+        max-wait: 20
45
+        # 连接池中的最大空闲连接 默认 8
46
+        max-idle: 10
47
+        # 连接池中的最小空闲连接 默认 8
48
+        min-idle: 8
49
+  # 文件大小上传配置
50
+  servlet:
51
+    multipart:
52
+      max-file-size: 20MB
53
+      max-request-size: 20MB
54
+  jackson:
55
+    time-zone: GMT+8
56
+    serialization:
57
+      #关闭jackson 对json做解析
58
+      fail-on-empty-beans: false
59
+
60
+  shardingsphere:
61
+    datasource:
62
+      #  数据库名称,可自定义,可以为多个,以逗号隔开,每个在这里定义的库,都要在下面定义连接属性
63
+      names: default-datasource
64
+      default-datasource:
65
+        type: com.alibaba.druid.pool.DruidDataSource
66
+        driverClassName: com.mysql.cj.jdbc.Driver
67
+        url: jdbc:mysql://127.0.0.1:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
68
+        username: root
69
+        password: lilishop
70
+        maxActive: 20
71
+        initialSize: 5
72
+        maxWait: 60000
73
+        minIdle: 5
74
+        timeBetweenEvictionRunsMillis: 60000
75
+        minEvictableIdleTimeMillis: 300000
76
+        validationQuery: SELECT 1 FROM DUAL
77
+        testWhileIdle: true
78
+        testOnBorrow: false
79
+        testOnReturn: false
80
+        #是否缓存preparedStatement,也就是PSCache。在mysql下建议关闭。 PSCache对支持游标的数据库性能提升巨大,比如说oracle。
81
+        poolPreparedStatements: false
82
+        #要启用PSCache,-1为关闭 必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true  可以把这个数值配置大一些,比如说100
83
+        maxOpenPreparedStatements: -1
84
+        #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
85
+        filters: stat,wall,log4j2
86
+        #通过connectProperties属性来打开mergeSql功能;慢SQL记录
87
+        connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
88
+        #合并多个DruidDataSource的监控数据
89
+        useGlobalDataSourceStat: true
90
+        loginUsername: druid
91
+        loginPassword: druid
92
+    #    sharding:
93
+    #      default-data-source-name: default-datasource
94
+    #      #需要拆分的表,可以设置多个  在 li_order 级别即可
95
+    #      tables:
96
+    #        #需要进行分表的逻辑表名
97
+    #        li_order:
98
+    #          #实际的表结点,下面代表的是li_order_为开头的所有表,如果能确定表的范围例如按月份分表,这里的写法是data2020.li_order_$->{2020..2021}_$->{01..12}  表示例如 li_order_2020_01 li_order_2020_03 li_order_2021_01
99
+    #          actual-data-nodes: data2020.li_order_$->{2019..2021}_$->{01..12}
100
+    #          table-strategy:
101
+    #            # 分表策略,根据创建日期
102
+    #            standard:
103
+    #              sharding-column: create_time
104
+    #              #分表策略
105
+    #              precise-algorithm-class-name: cn.lili.mybatis.sharding.CreateTimeShardingTableAlgorithm
106
+    #              #范围查询实现
107
+    #              range-algorithm-class-name: cn.lili.mybatis.sharding.CreateTimeShardingTableAlgorithm
108
+    props:
109
+      #是否打印逻辑SQL语句和实际SQL语句,建议调试时打印,在生产环境关闭
110
+      sql:
111
+        show: false
112
+
113
+# 忽略鉴权url
114
+ignored:
115
+  urls:
116
+    - /editor-app/**
117
+    - /actuator**
118
+    - /actuator/**
119
+    - /MP_verify_qSyvBPhDsPdxvOhC.txt
120
+    - /weixin/**
121
+    - /source/**
122
+    - /common/common/slider/**
123
+    - /common/common/sms/**
124
+    - /druid/**
125
+    - /swagger-ui.html
126
+    - /doc.html
127
+    - /swagger-resources/**
128
+    - /swagger/**
129
+    - /webjars/**
130
+    - /v2/api-docs
131
+    - /configuration/ui
132
+    - /boot-admin
133
+    - /**/*.js
134
+    - /**/*.css
135
+    - /**/*.png
136
+    - /**/*.ico
137
+
138
+# Swagger界面内容配置
139
+swagger:
140
+  title: lili API接口文档
141
+  description: lili Api Documentation
142
+  version: 1.0.0
143
+  termsOfServiceUrl: https://pickmall.cn
144
+  contact:
145
+    name: lili
146
+    url: https://pickmall.cn
147
+    email: admin@pickmall.com
148
+
149
+# Mybatis-plus
150
+mybatis-plus:
151
+  mapper-locations: classpath*:mapper/*.xml
152
+  configuration:
153
+    #缓存开启
154
+    cache-enabled: true
155
+    #日志
156
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
157
+
158
+# 日志
159
+logging:
160
+  config: classpath:logback-spring.xml
161
+  # 输出级别
162
+  level:
163
+    root: info
164
+  #    org.hibernate: debug
165
+  #    org.springframework: debug
166
+  file:
167
+    # 指定路径
168
+    path: lili-logs
169
+  logback:
170
+    rollingpolicy:
171
+      # 最大保存天数
172
+      max-history: 7
173
+      # 每个文件最大大小
174
+      max-file-size: 5MB
175
+#加密参数
176
+jasypt:
177
+  encryptor:
178
+    password: lili
179
+
180
+lili:
181
+  #验证码设置
182
+  verification-code:
183
+    #图形验证码有效时间 秒 包含滑块验证码有效时间, 以及验证通过之后,缓存中存储的验证结果有效时间
184
+    effectiveTime: 300
185
+    #水印
186
+    watermark: Maopeng
187
+    #干扰项数量 最大2 默认0
188
+    interfereNum: 0
189
+    #允许误差像素
190
+    faultTolerant: 3
191
+  #短信模版配置
192
+  sms:
193
+    #登录
194
+    LOGIN: SMS_238585058
195
+    #注册
196
+    REGISTER: SMS_238585058
197
+    #找回密码
198
+    FIND_USER: SMS_238585058
199
+    #设置密码
200
+    UPDATE_PASSWORD: SMS_238585058
201
+    #支付密码
202
+    WALLET_PASSWORD: SMS_238585058
203
+  system:
204
+    isTestModel: false
205
+  statistics:
206
+    # 在线人数统计 X 小时。这里设置48,即统计过去48小时每小时在线人数
207
+    onlineMember: 48
208
+    # 当前在线人数刷新时间间隔,单位秒,设置为600,则每10分钟刷新一次
209
+    currentOnlineUpdate: 600
210
+  #qq lbs 申请
211
+  lbs:
212
+    key: 4BYBZ-7MT6S-PUAOA-6BNWL-FJUD7-UUFXT
213
+    sk: zhNKVrJK6UPOhqIjn8AQvG37b9sz6
214
+  #域名
215
+  domain:
216
+    pc: https://pc.b2b2c.pickmall.cn
217
+    wap: https://m.b2b2c.pickmall.cn
218
+    store: https://store.b2b2c.pickmall.cn
219
+    admin: https://admin.b2b2c.pickmall.cn
220
+  #api地址
221
+  api:
222
+    buyer: https://buyer-api.pickmall.cn
223
+    common: https://common-api.pickmall.cn
224
+    manager: https://admin-api.pickmall.cn
225
+    store: https://store-api.pickmall.cn
226
+
227
+  # jwt 细节设定
228
+  jwt-setting:
229
+    # token过期时间(分钟)
230
+    tokenExpireTime: 60
231
+
232
+  # 使用Spring @Cacheable注解失效时间
233
+  cache:
234
+    # 过期时间 单位秒 永久不过期设为-1
235
+    timeout: 1500
236
+  #多线程配置
237
+  thread:
238
+    corePoolSize: 5
239
+    maxPoolSize: 50
240
+    queueCapacity: 50
241
+  data:
242
+    elasticsearch:
243
+      cluster-name: elasticsearch
244
+      cluster-nodes: 127.0.0.1:9200
245
+      index:
246
+        number-of-replicas: 0
247
+        number-of-shards: 3
248
+      index-prefix: lili
249
+      schema: http
250
+    #      account:
251
+    #        username: elastic
252
+    #        password: LiLiShopES
253
+    logstash:
254
+      server: 127.0.0.1:4560
255
+    rocketmq:
256
+      promotion-topic: lili_promotion_topic
257
+      promotion-group: lili_promotion_group
258
+      msg-ext-topic: lili_msg_topic
259
+      msg-ext-group: lili_msg_group
260
+      goods-topic: lili_goods_topic
261
+      goods-group: lili_goods_group
262
+      order-topic: lili_order_topic
263
+      order-group: lili_order_group
264
+      member-topic: lili_member_topic
265
+      member-group: lili_member_group
266
+      other-topic: lili_other_topic
267
+      other-group: lili_other_group
268
+      notice-topic: lili_notice_topic
269
+      notice-group: lili_notice_group
270
+      notice-send-topic: lili_send_notice_topic
271
+      notice-send-group: lili_send_notice_group
272
+rocketmq:
273
+  name-server: 127.0.0.1:9876
274
+  producer:
275
+    group: lili_group
276
+    send-message-timeout: 30000
277
+
278
+xxl:
279
+  job:
280
+    admin:
281
+      addresses: http://127.0.0.1:9001/xxl-job-admin
282
+    executor:
283
+      appname: xxl-job-executor-lilishop
284
+      address:
285
+      ip:
286
+      port: 8891
287
+      logpath: ./xxl-job/executor
288
+      logretentiondays: 7