修改数据库 redis

master
wyq 7 months ago
parent a2a661cf6c
commit 61d4abb1bb
  1. 130
      crmeb-admin/src/main/resources/application-prod.yml
  2. 43
      crmeb-admin/src/main/resources/application.yml
  3. 54
      crmeb-front/src/main/resources/application-prod.yml
  4. 37
      crmeb-front/src/main/resources/application.yml

@ -7,12 +7,19 @@ crmeb:
wechat-js-api-beta: true #微信js api是否是beta版本
asyncConfig: true #是否同步config表数据到redis
asyncWeChatProgramTempList: false #是否同步小程序公共模板库
imagePath: /你的站点绝对路径 建议jar包位置/ # 服务器图片路径配置 斜杠结尾
imagePath: /Users/stivepeim/Documents/ZBKJ/CODEMANGER/BIZ-CODE/JavaSingel/2.0.5/CRMEB_JAVA_SY_V2.0.5-20240517/single_java/ # 服务器图片路径配置 斜杠结尾
captchaOn: false # 是否开启行为验证码
demoSite: true # 是否演示站点 所有手机号码都会掩码
activityStyleCachedTime: 10 #活动边框缓存周期 秒为单位,生产环境适当5-10分钟即可
imageHost: https://h5-wechat-mall.oss-cn-shanghai.aliyuncs.com/
server:
port: 20400
port: 11082
servlet:
context-path: / # 访问path
tomcat:
uri-encoding: UTF-8 # 默认编码格式
max-threads: 1000 # 最大线程数量 默认200
min-spare-threads: 30 # 初始化启动线程数量
spring:
profiles:
@ -22,19 +29,51 @@ spring:
multipart:
max-file-size: 50MB #设置单个文件大小
max-request-size: 50MB #设置单次请求文件的总大小
application:
name: cemrb-admin #这个很重要,这在以后的服务与服务之间相互调用一般都是根据这个name
jackson:
locale: zh_CN
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# 数据库配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/java_demo?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: java_demo
password: 111111
url: jdbc:mysql://rm-uf63510o17626z1f1xo.mysql.rds.aliyuncs.com:3306/h5_wechat_mall?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: xiaoht
password: Gkq@8888
# quartz
quartz:
properties:
org:
quartz:
scheduler:
instanceName: quartzScheduler
# instanceName: clusteredScheduler
instanceId: AUTO
jobStore:
class: org.quartz.impl.jdbcjobstore.JobStoreTX
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: false
clusterCheckinInterval: 10000
useProperties: false
# dataSource: crmeb_java_beta
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 10
threadPriority: 5
threadsInheritContextClassLoaderOfInitializingThread: true
#数据库方式
job-store-type: JDBC
redis:
host: 127.0.0.1 #地址
host: 47.104.160.69 #地址
port: 6379 #端口
password: 111111
timeout: 10000 # 连接超时时间(毫秒)
database: 4 #默认数据库
password: xs_123456
timeout: 30000 # 连接超时时间(毫秒)
database: 9 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
@ -42,12 +81,14 @@ spring:
max-idle: 10 # 连接池中的最大空闲连接
min-idle: 0 # 连接池中的最小空闲连接
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
second:
database: 14 # 微信accessToken存储库
debug: true
logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.web.servlet: error
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
@ -55,10 +96,16 @@ logging:
# mybatis 配置
mybatis-plus:
mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
typeAliasesPackage: com.zbkj.**.model
# 配置sql打印日志
configuration:
log-impl:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
# logic-delete-field: isDel #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
#swagger 配置
swagger:
basic:
@ -66,3 +113,60 @@ swagger:
check: false #是否打开验证
username: crmeb #访问swagger的账号
password: crmeb.com #访问swagger的密码
# 行为验证码
aj:
captcha:
type: default # 验证码类型
water-mark: CRMEB Java # 水印
slip-offset: 5 # 校验滑动拼图允许误差偏移量(默认5像素)
aes-status: true # aes加密坐标开启或者禁用(true|false)
interference-options: 2 # 滑动干扰项(0/1/2)
font-style: 1 # 点选字体样式 默认Font.BOLD
font-size: 25 # 点选字体字体大小
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
req-get-lock-seconds: 360 # 验证失败后,锁定时间间隔,s
req-get-minute-limit: 30 # get接口一分钟内请求数限制
req-check-minute-limit: 60 # check接口一分钟内请求数限制
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制
# 滑动验证,底图路径,不配置将使用默认图片
# 支持全路径
# 支持项目路径,以classpath:开头,取resource目录下路径,例:classpath:images/jigsaw
jigsaw: classpath:images/jigsaw
#滑动验证,底图路径,不配置将使用默认图片
##支持全路径
# 支持项目路径,以classpath:开头,取resource目录下路径,例:classpath:images/pic-click
pic-click: classpath:images/pic-click
# 对于分布式部署的应用,我们建议应用自己实现CaptchaCacheService,比如用Redis或者memcache,
# 参考CaptchaCacheServiceRedisImpl.java
# 如果应用是单点的,也没有使用redis,那默认使用内存。
# 内存缓存只适合单节点部署的应用,否则验证码生产与验证在节点之间信息不同步,导致失败。
# !!! 注意啦,如果应用有使用spring-boot-starter-data-redis,
# 请打开CaptchaCacheServiceRedisImpl.java注释。
# redis -----> SPI: 在resources目录新建META-INF.services文件夹(两层),参考当前服务resources。
# 缓存local/redis...
cache-type: redis
# local缓存的阈值,达到这个值,清除缓存
cache-number: 1000
# local定时清除过期缓存(单位秒),设置为0代表不执行
timing-clear: 3600
history-data-clear-enable: false
ruoyi:
applyInvoicingUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/applyInvoicing
createOrderUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/createErpOrder
updateOrderRefundStatusUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/updateOrderRefundStatus
triggerDeliveryCheckUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/triggerDeliveryCheck
systemErrRobot: https://open.feishu.cn/open-apis/bot/v2/hook/c8cf1da1-c652-482d-9996-62bdb8da25fe
mdb:
url: https://creditcardapp.bankcomm.com/iggwapi
appId: dglfIstmMgnService
clientId: ad5f57c87dda40a6b3456ecd5549df23
clientSecret: d637b085d5c94a128fd817a13aec02a7
vendorId: FQ01002953
userClientId: fd9z85kk-8665-64d4-9986-228a2h59b113
userUrl: https://creditcardapp.bankcomm.com/oautht
goodUrl: https://shopmall.xsbuy.cn/pages/goods/goods_details/index?id=

@ -7,9 +7,10 @@ crmeb:
wechat-js-api-beta: true #微信js api是否是beta版本
asyncConfig: true #是否同步config表数据到redis
asyncWeChatProgramTempList: false #是否同步小程序公共模板库
imagePath: /你的站点绝对路径 建议jar包位置/ # 服务器图片路径配置 斜杠结尾
imagePath: /Users/stivepeim/Documents/ZBKJ/CODEMANGER/BIZ-CODE/JavaSingel/2.0.5/CRMEB_JAVA_SY_V2.0.5-20240517/single_java/
demoSite: true # 是否演示站点 所有手机号码都会掩码
activityStyleCachedTime: 10 #活动边框缓存周期 秒为单位,生产环境适当5-10分钟即可
imageHost: https://h5-wechat-mall.oss-cn-shanghai.aliyuncs.com/
ignored: #安全路径白名单
- swagger-ui/
- swagger-resources/**
@ -27,7 +28,7 @@ crmeb:
# 配置端口
server:
port: 8080
port: 11082
servlet:
context-path: / # 访问path
tomcat:
@ -37,8 +38,8 @@ server:
spring:
profiles:
# 配置的环境
# active: #spring.profiles.active#
# 配置的环境
# active: #spring.profiles.active#
active:
servlet:
multipart:
@ -54,9 +55,9 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/test_java?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: test_java
password: 111111
url: jdbc:mysql://rm-uf6s7cvevngr5gwe4uo.mysql.rds.aliyuncs.com:3306/h5_wechat_mall?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: root
password: rsv_iqid=0xb170
# quartz
quartz:
properties:
@ -84,11 +85,11 @@ spring:
redis:
host: 127.0.0.1 #地址
host: 47.104.160.69 #地址
port: 6379 #端口
password: 111111
password: xs_123456
timeout: 30000 # 连接超时时间(毫秒)
database: 10 #默认数据库
database: 8 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
@ -104,6 +105,7 @@ logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.web.servlet: error
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
@ -118,7 +120,7 @@ mybatis-plus:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
# logic-delete-field: isDel #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
# logic-delete-field: isDel #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
@ -170,4 +172,21 @@ aj:
# local定时清除过期缓存(单位秒),设置为0代表不执行
timing-clear: 3600
history-data-clear-enable: false
history-data-clear-enable: false
ruoyi:
applyInvoicingUrl: http://47.123.5.73:9201/extendShop/applyInvoicing
createOrderUrl: http://47.123.5.73:9201/extendShop/createErpOrder
updateOrderRefundStatusUrl: http://47.123.5.73:9201/extendShop/updateOrderRefundStatus
triggerDeliveryCheckUrl: http://47.123.5.73:9201/extendShop/triggerDeliveryCheck
systemErrRobot: https://open.feishu.cn/open-apis/bot/v2/hook/dac8c464-cfc3-4323-bd1c-bba3b16f3415
mdb:
url: https://paymenttest.bankcomm.com/iggwapi
appId: dglfIstmMgnService
clientId: 7dc780ef6d544389a55f2f2c8618396d
clientSecret: f1eb8f5cdd1f46bba4c6dbfb96eae669
vendorId: FQ00003309
userClientId: fd9z85kk-8665-64d4-9986-228a2h59b113
userUrl: http://piap_oauth_web.ydhl-dev1.apps.paasdev.pccc.com
goodUrl: http://mallshop-test.xsbuy.cn:200/static/html/pc.html

@ -1,11 +1,18 @@
# CRMEB 相关配置
crmeb:
version: CRMEB-JAVA-SY-v2.2 # 当前代码版本
imagePath: /你的站点绝对路径 建议jar包位置/ # 服务器图片路径配置 斜杠结尾
asyncConfig: true #是否同步config表数据到redis
imagePath: /Users/stivepeim/Documents/ZBKJ/CODEMANGER/BIZ-CODE/JavaSingel/2.0.5/CRMEB_JAVA_SY_V2.0.5-20240517/single_java/ # 服务器图片路径配置 斜杠结尾
asyncConfig: false #是否同步config表数据到redis
activityStyleCachedTime: 10 #活动边框缓存周期 秒为单位,生产环境适当5-10分钟即可
demoSite: true # 是否演示站点 所有手机号码都会掩码
server:
port: 20410
port: 11081
servlet:
context-path: / # 访问path
tomcat:
uri-encoding: UTF-8 # 默认编码格式
max-threads: 1000 # 最大线程数量 默认200
min-spare-threads: 30 # 初始化启动线程数量
spring:
profiles:
@ -15,15 +22,15 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/java_demo?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: java_demo
password: 111111
url: jdbc:mysql://rm-uf63510o17626z1f1xo.mysql.rds.aliyuncs.com:3306/h5_wechat_mall?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: xiaoht
password: Gkq@8888
redis:
host: 127.0.0.1 #地址
host: 47.104.160.69 #地址
port: 6379 #端口
password: 111111
timeout: 10000 # 连接超时时间(毫秒)
database: 4 #默认数据库
password: xs_123456
timeout: 30000 # 连接超时时间(毫秒)
database: 9 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
@ -37,6 +44,7 @@ logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.web.servlet: error
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
@ -44,10 +52,15 @@ logging:
# mybatis 配置
mybatis-plus:
mapper-locations: classpath*:mapper/*/*Mapper.xml #xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
# 配置sql打印日志
configuration:
log-impl:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
# logic-delete-field: isDel #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
#swagger 配置
swagger:
basic:
@ -55,3 +68,18 @@ swagger:
check: false #是否打开验证
username: crmeb #访问swagger的账号
password: crmeb.com #访问swagger的密码
mdb:
url: https://creditcardapp.bankcomm.com/iggwapi
appId: dglfIstmMgnService
clientId: ad5f57c87dda40a6b3456ecd5549df23
clientSecret: d637b085d5c94a128fd817a13aec02a7
vendorId: FQ01002953
userClientId: fd9z85kk-8665-64d4-9986-228a2h59b113
userUrl: https://creditcardapp.bankcomm.com/oautht
goodUrl: http://mallshop.xsbuy.cn/static/html/pc.html
ruoyi:
applyInvoicingUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/applyInvoicing
createOrderUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/createErpOrder
updateOrderRefundStatusUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/updateOrderRefundStatus
triggerDeliveryCheckUrl: https://oco.xsbuy.cn/stage-api/system/extendShop/triggerDeliveryCheck
systemErrRobot: https://open.feishu.cn/open-apis/bot/v2/hook/c8cf1da1-c652-482d-9996-62bdb8da25fe

@ -1,7 +1,7 @@
# CRMEB 相关配置
crmeb:
version: CRMEB-JAVA-SY-v2.2 # 当前代码版本
imagePath: /你的站点绝对路径 建议jar包位置/ # 服务器图片路径配置 斜杠结尾
imagePath: /Users/stivepeim/Documents/ZBKJ/CODEMANGER/BIZ-CODE/JavaSingel/2.0.5/CRMEB_JAVA_SY_V2.0.5-20240517/single_java/ # 服务器图片路径配置 斜杠结尾
asyncConfig: false #是否同步config表数据到redis
activityStyleCachedTime: 10 #活动边框缓存周期 秒为单位,生产环境适当5-10分钟即可
demoSite: true # 是否演示站点 所有手机号码都会掩码
@ -21,7 +21,7 @@ crmeb:
# 配置端口
server:
port: 8081
port: 11081
servlet:
context-path: / # 访问path
tomcat:
@ -48,15 +48,15 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/test_java?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: test_java
password: 111111
url: jdbc:mysql://rm-uf6s7cvevngr5gwe4uo.mysql.rds.aliyuncs.com:3306/h5_wechat_mall?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
username: root
password: rsv_iqid=0xb170
redis:
host: 127.0.0.1 #地址
host: 47.104.160.69 #地址
port: 6379 #端口
password: 111111
password: xs_123456
timeout: 30000 # 连接超时时间(毫秒)
database: 10 #默认数据库
database: 8 #默认数据库
jedis:
pool:
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
@ -72,6 +72,7 @@ logging:
level:
io.swagger.*: error
com.zbjk.crmeb: debug
org.springframework.web.servlet: error
org.springframework.boot.autoconfigure: ERROR
config: classpath:logback-spring.xml
file:
@ -85,7 +86,7 @@ mybatis-plus:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
# logic-delete-field: isDel #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
# logic-delete-field: isDel #全局逻辑删除字段值 3.3.0开始支持,详情看下面。
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
@ -138,3 +139,21 @@ swagger:
check: false #是否打开验证
username: #访问swagger的账号
password: #访问swagger的密码
mdb:
url: https://paymenttest.bankcomm.com/iggwapi
appId: dglfIstmMgnService
clientId: 7dc780ef6d544389a55f2f2c8618396d
clientSecret: f1eb8f5cdd1f46bba4c6dbfb96eae669
vendorId: FQ00003309
userClientId: fd9z85kk-8665-64d4-9986-228a2h59b113
userUrl: https://paymenttest.bankcomm.com/oautht
goodUrl: http://mallshop-test.xsbuy.cn:200/static/html/pc.html
ruoyi:
applyInvoicingUrl: http://47.123.5.73:9201/extendShop/applyInvoicing
createOrderUrl: http://47.123.5.73:9201/extendShop/createErpOrder
updateOrderRefundStatusUrl: http://47.123.5.73:9201/extendShop/updateOrderRefundStatus
triggerDeliveryCheckUrl: http://47.123.5.73:9201/extendShop/triggerDeliveryCheck
systemErrRobot: https://open.feishu.cn/open-apis/bot/v2/hook/dac8c464-cfc3-4323-bd1c-bba3b16f3415
alis:
accessKey: LTAI5tRHmAmcSo3ytLajCLyK
accessKeySecret: k3dhdkIa2eG8Q5hTGpyspVB0Aeo7SV

Loading…
Cancel
Save