|
@@ -0,0 +1,268 @@
|
|
|
+server:
|
|
|
+ port: 8002
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+spring:
|
|
|
+
|
|
|
+ autoconfigure:
|
|
|
+ exclude:
|
|
|
+ - com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
|
|
+# - org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration
|
|
|
+# - de.codecentric.boot.admin.server.config.AdminServerAutoConfiguration
|
|
|
+# - de.codecentric.boot.admin.server.ui.config.AdminServerUiAutoConfiguration
|
|
|
+# - de.codecentric.boot.admin.client.config.SpringBootAdminClientAutoConfiguration
|
|
|
+ datasource:
|
|
|
+ druid:
|
|
|
+ web-stat-filter:
|
|
|
+ enabled: true
|
|
|
+ stat-view-servlet:
|
|
|
+ enabled: true
|
|
|
+ allow:
|
|
|
+ url-pattern: /druid/*
|
|
|
+ login-username:
|
|
|
+ login-password:
|
|
|
+ filter:
|
|
|
+ stat:
|
|
|
+ enabled: true
|
|
|
+ log-slow-sql: true
|
|
|
+ slow-sql-millis: 100
|
|
|
+ merge-sql: true
|
|
|
+ wall:
|
|
|
+ config:
|
|
|
+ multi-statement-allow: true
|
|
|
+ dynamic:
|
|
|
+ druid:
|
|
|
+ initial-size: 1
|
|
|
+ min-idle: 1
|
|
|
+ max-active: 20
|
|
|
+ max-wait: 600000
|
|
|
+ time-between-eviction-runs-millis: 60000
|
|
|
+ min-evictable-idle-time-millis: 300000
|
|
|
+ max-evictable-idle-time-millis: 900000
|
|
|
+ validation-query: SELECT 1 FROM DUAL
|
|
|
+ test-while-idle: true
|
|
|
+ test-on-borrow: false
|
|
|
+ test-on-return: false
|
|
|
+ primary: master
|
|
|
+ datasource:
|
|
|
+ master:
|
|
|
+ name: mall-letcgo
|
|
|
+ url: jdbc:mysql://120.78.5.233:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
|
|
+ username: root
|
|
|
+ password: PA55W0RD
|
|
|
+ slave:
|
|
|
+ name: mall-letcgo
|
|
|
+ lazy: true
|
|
|
+ url: jdbc:mysql://120.78.5.233:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
|
|
|
+ username: root
|
|
|
+ password: PA55W0RD
|
|
|
+
|
|
|
+
|
|
|
+ redis:
|
|
|
+ host: 47.107.29.61
|
|
|
+ port: 6379
|
|
|
+ database: 0
|
|
|
+# password: 123456
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+# Quartz 配置项,对应 QuartzProperties 配置类
|
|
|
+spring:
|
|
|
+ quartz:
|
|
|
+ auto-startup: true
|
|
|
+ scheduler-name: schedulerName
|
|
|
+ job-store-type: jdbc
|
|
|
+ wait-for-jobs-to-complete-on-shutdown: true
|
|
|
+ properties:
|
|
|
+ org:
|
|
|
+ quartz:
|
|
|
+
|
|
|
+ scheduler:
|
|
|
+ instanceName: schedulerName
|
|
|
+ instanceId: AUTO
|
|
|
+
|
|
|
+ jobStore:
|
|
|
+
|
|
|
+ class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
|
|
+ isClustered: true
|
|
|
+ clusterCheckinInterval: 15000
|
|
|
+ misfireThreshold: 60000
|
|
|
+
|
|
|
+ threadPool:
|
|
|
+ threadCount: 25
|
|
|
+ threadPriority: 5
|
|
|
+ class: org.quartz.simpl.SimpleThreadPool
|
|
|
+ jdbc:
|
|
|
+ initialize-schema: NEVER
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+# rocketmq 配置项,对应 RocketMQProperties 配置类
|
|
|
+rocketmq:
|
|
|
+ name-server: 127.0.0.1:9876
|
|
|
+
|
|
|
+spring:
|
|
|
+
|
|
|
+ rabbitmq:
|
|
|
+ host: 127.0.0.1
|
|
|
+ port: 5672
|
|
|
+ username: rabbit
|
|
|
+ password: rabbit
|
|
|
+
|
|
|
+ kafka:
|
|
|
+ bootstrap-servers: 127.0.0.1:9092
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+# Lock4j 配置项
|
|
|
+lock4j:
|
|
|
+ acquire-timeout: 3000
|
|
|
+ expire: 30000
|
|
|
+
|
|
|
+# Resilience4j 配置项
|
|
|
+resilience4j:
|
|
|
+ ratelimiter:
|
|
|
+ instances:
|
|
|
+ backendA:
|
|
|
+ limit-for-period: 1
|
|
|
+ limit-refresh-period: 60s
|
|
|
+ timeout-duration: 1s
|
|
|
+ register-health-indicator: true
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+# Actuator 监控端点的配置项
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ web:
|
|
|
+ base-path: /actuator
|
|
|
+ exposure:
|
|
|
+ include: '*'
|
|
|
+
|
|
|
+# Spring Boot Admin 配置项
|
|
|
+spring:
|
|
|
+ boot:
|
|
|
+ admin:
|
|
|
+
|
|
|
+ client:
|
|
|
+ url: http://47.107.28.221:${server.port}/${spring.boot.admin.context-path}
|
|
|
+ instance:
|
|
|
+ service-host-type: IP
|
|
|
+
|
|
|
+ context-path: /admin
|
|
|
+
|
|
|
+# 日志文件配置
|
|
|
+logging:
|
|
|
+ file:
|
|
|
+ name: ${user.home}/logs/${spring.application.name}.log
|
|
|
+ level:
|
|
|
+
|
|
|
+ cn.newfeifan.mall.module.bpm.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.infra.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.infra.dal.mysql.job.JobLogMapper: INFO
|
|
|
+ cn.newfeifan.mall.module.infra.dal.mysql.file.FileConfigMapper: INFO
|
|
|
+ cn.newfeifan.mall.module.pay.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.pay.dal.mysql.notify.PayNotifyTaskMapper: INFO
|
|
|
+ cn.newfeifan.mall.module.system.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.system.dal.mysql.sensitiveword.SensitiveWordMapper: INFO
|
|
|
+ cn.newfeifan.mall.module.system.dal.mysql.sms.SmsChannelMapper: INFO
|
|
|
+ cn.newfeifan.mall.module.tool.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.member.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.trade.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.promotion.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.statistics.dal.mysql: debug
|
|
|
+ cn.newfeifan.mall.module.crm.dal.mysql: debug
|
|
|
+ org.springframework.context.support.PostProcessorRegistrationDelegate: ERROR
|
|
|
+
|
|
|
+debug: false
|
|
|
+
|
|
|
+---
|
|
|
+wx:
|
|
|
+ mp:
|
|
|
+# app-id: wx041349c6f39b268b
|
|
|
+# secret: 5abee519483bc9f8cb37ce280e814bd0
|
|
|
+ app-id: wx917c16ecb85e8fb8
|
|
|
+ secret: e6be2d75ba7dc0f3d833469645062b79
|
|
|
+# app-id: wxa69ab825b163be19
|
|
|
+# secret: bd4f9fab889591b62aeac0d7b8d8b4a0
|
|
|
+
|
|
|
+ config-storage:
|
|
|
+ type: RedisTemplate
|
|
|
+ key-prefix: wx
|
|
|
+ http-client-type: HttpClient
|
|
|
+ miniapp:
|
|
|
+
|
|
|
+
|
|
|
+ appid: wx63c280fe3248a3e7
|
|
|
+ secret: 6f270509224a7ae1296bbf1c8cb97aed
|
|
|
+# appid: wxc4598c446f8a9cb3
|
|
|
+# secret: 4a1a04e07f6a4a0751b39c3064a92c8b
|
|
|
+ config-storage:
|
|
|
+ type: RedisTemplate
|
|
|
+ key-prefix: wa
|
|
|
+ http-client-type: HttpClient
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+# 非繁配置项,设置当前项目所有自定义的配置
|
|
|
+feifan:
|
|
|
+ captcha:
|
|
|
+ enable: false
|
|
|
+ security:
|
|
|
+ mock-enable: true
|
|
|
+ xss:
|
|
|
+ enable: false
|
|
|
+ exclude-urls:
|
|
|
+ - ${spring.boot.admin.context-path}/**
|
|
|
+ - ${management.endpoints.web.base-path}/**
|
|
|
+ pay:
|
|
|
+ order-notify-url: http://zxgz.newfeifan.cn/admin-api/pay/notify/order
|
|
|
+ refund-notify-url: http://zxgz.newfeifan.cn/admin-api/pay/notify/refund
|
|
|
+ access-log:
|
|
|
+ enable: false
|
|
|
+ error-code:
|
|
|
+ enable: false
|
|
|
+ demo: false
|
|
|
+ tencent-lbs-key: TVDBZ-TDILD-4ON4B-PFDZA-RNLKH-VVF6E
|
|
|
+
|
|
|
+justauth:
|
|
|
+ enabled: true
|
|
|
+ type:
|
|
|
+ DINGTALK:
|
|
|
+ client-id: dingvrnreaje3yqvzhxg
|
|
|
+ client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
|
|
|
+ ignore-check-redirect-uri: true
|
|
|
+ WECHAT_ENTERPRISE:
|
|
|
+ client-id: wwd411c69a39ad2e54
|
|
|
+ client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
|
|
|
+ agent-id: 1000004
|
|
|
+ ignore-check-redirect-uri: true
|
|
|
+ WECHAT_MINI_APP:
|
|
|
+ client-id: ${wx.miniapp.appid}
|
|
|
+ client-secret: ${wx.miniapp.secret}
|
|
|
+ ignore-check-redirect-uri: true
|
|
|
+ ignore-check-state: true
|
|
|
+ WECHAT_MP:
|
|
|
+ client-id: ${wx.mp.app-id}
|
|
|
+ client-secret: ${wx.mp.secret}
|
|
|
+ ignore-check-redirect-uri: true
|
|
|
+ cache:
|
|
|
+ type: REDIS
|
|
|
+ prefix: 'social_auth_state:'
|
|
|
+ timeout: 24h
|
|
|
+
|
|
|
+# TODO 赤焰:这个配置的目的是?
|
|
|
+#ureport配置
|
|
|
+#ureport:
|
|
|
+# disableHttpSessionReportCache: true
|
|
|
+# disableFileProvider: true
|
|
|
+# debug: true
|
|
|
+# fileStoreDir: D://ureport//files
|
|
|
+# provider:
|
|
|
+# database:
|
|
|
+# disabled: true
|
|
|
+# file:
|
|
|
+# disabled: true
|
|
|
+
|
|
|
+
|