|
@@ -1,153 +1,117 @@
|
|
|
# 数据源配置
|
|
|
spring:
|
|
|
- datasource:
|
|
|
- type: com.alibaba.druid.pool.DruidDataSource
|
|
|
- driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
- druid:
|
|
|
- # 主库数据源
|
|
|
- master:
|
|
|
- url: jdbc:mysql://47.100.77.211:3306/art?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
|
|
|
- username: root
|
|
|
- password: fengQiao%2022
|
|
|
- # 从库数据源
|
|
|
- slave:
|
|
|
- # 从数据源开关/默认关闭
|
|
|
- enabled: false
|
|
|
- url:
|
|
|
- username:
|
|
|
- password:
|
|
|
- # 初始连接数
|
|
|
- initialSize: 5
|
|
|
- # 最小连接池数量
|
|
|
- minIdle: 10
|
|
|
- # 最大连接池数量
|
|
|
- maxActive: 20
|
|
|
- # 配置获取连接等待超时的时间
|
|
|
- maxWait: 60000
|
|
|
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
- timeBetweenEvictionRunsMillis: 60000
|
|
|
- # 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
- minEvictableIdleTimeMillis: 300000
|
|
|
- # 配置一个连接在池中最大生存的时间,单位是毫秒
|
|
|
- maxEvictableIdleTimeMillis: 900000
|
|
|
- # 配置检测连接是否有效
|
|
|
- validationQuery: SELECT 1 FROM DUAL
|
|
|
- testWhileIdle: true
|
|
|
- testOnBorrow: false
|
|
|
- testOnReturn: false
|
|
|
- webStatFilter:
|
|
|
- enabled: true
|
|
|
- statViewServlet:
|
|
|
- enabled: true
|
|
|
- # 设置白名单,不填则允许所有访问
|
|
|
- allow:
|
|
|
- url-pattern: /druid/*
|
|
|
- # 控制台管理用户名和密码
|
|
|
- login-username:
|
|
|
- login-password:
|
|
|
- filter:
|
|
|
- stat:
|
|
|
- enabled: true
|
|
|
- # 慢SQL记录
|
|
|
- log-slow-sql: true
|
|
|
- slow-sql-millis: 1000
|
|
|
- merge-sql: true
|
|
|
- wall:
|
|
|
- config:
|
|
|
- multi-statement-allow: true
|
|
|
- # redis 配置
|
|
|
- redis:
|
|
|
- # 地址
|
|
|
- host: 127.0.0.1
|
|
|
- # 端口,默认为6379
|
|
|
- port: 6379
|
|
|
- # 数据库索引
|
|
|
- database: 0
|
|
|
- # 密码
|
|
|
-# password: 123456
|
|
|
- # 连接超时时间
|
|
|
- timeout: 5000
|
|
|
- jedis:
|
|
|
- pool:
|
|
|
- # 连接池中的最小空闲连接
|
|
|
- min-idle: 0
|
|
|
- # 连接池中的最大空闲连接
|
|
|
- max-idle: 8
|
|
|
- # 连接池的最大数据库连接数
|
|
|
- max-active: 8
|
|
|
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
- max-wait: -1ms
|
|
|
+ datasource:
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
+ druid:
|
|
|
+ # 主库数据源
|
|
|
+ master:
|
|
|
+ url: jdbc:mysql://rm-k2j7j3e0xl0e4zj73.mysql.zhangbei.rds.aliyuncs.com:3306/tour?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true
|
|
|
+ username: liebao
|
|
|
+ password: Liebao%2021
|
|
|
+ # 从库数据源
|
|
|
+ slave:
|
|
|
+ # 从数据源开关/默认关闭
|
|
|
+ enabled: false
|
|
|
+ url:
|
|
|
+ username:
|
|
|
+ password:
|
|
|
+ # 初始连接数
|
|
|
+ initialSize: 5
|
|
|
+ # 最小连接池数量
|
|
|
+ minIdle: 10
|
|
|
+ # 最大连接池数量
|
|
|
+ maxActive: 20
|
|
|
+ # 配置获取连接等待超时的时间
|
|
|
+ maxWait: 60000
|
|
|
+ # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
+ timeBetweenEvictionRunsMillis: 60000
|
|
|
+ # 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
+ minEvictableIdleTimeMillis: 300000
|
|
|
+ # 配置一个连接在池中最大生存的时间,单位是毫秒
|
|
|
+ maxEvictableIdleTimeMillis: 900000
|
|
|
+ # 配置检测连接是否有效
|
|
|
+ validationQuery: SELECT 1 FROM DUAL
|
|
|
+ testWhileIdle: true
|
|
|
+ testOnBorrow: false
|
|
|
+ testOnReturn: false
|
|
|
+ webStatFilter:
|
|
|
+ enabled: true
|
|
|
+ statViewServlet:
|
|
|
+ enabled: true
|
|
|
+ # 设置白名单,不填则允许所有访问
|
|
|
+ allow:
|
|
|
+ url-pattern: /druid/*
|
|
|
+ # 控制台管理用户名和密码
|
|
|
+ login-username:
|
|
|
+ login-password:
|
|
|
+ filter:
|
|
|
+ stat:
|
|
|
+ enabled: true
|
|
|
+ # 慢SQL记录
|
|
|
+ log-slow-sql: true
|
|
|
+ slow-sql-millis: 1000
|
|
|
+ merge-sql: true
|
|
|
+ wall:
|
|
|
+ config:
|
|
|
+ multi-statement-allow: true
|
|
|
+ # redis 配置
|
|
|
+ redis:
|
|
|
+ # 地址
|
|
|
+ host: 192.168.16.41
|
|
|
+ # 端口,默认为6379
|
|
|
+ port: 6379
|
|
|
+ # 数据库索引
|
|
|
+ database: 11
|
|
|
+ # 密码
|
|
|
+ password: Liebao%2021
|
|
|
+ # 连接超时时间
|
|
|
+ timeout: 3000
|
|
|
+ jedis:
|
|
|
+ pool:
|
|
|
+ # 连接池中的最小空闲连接
|
|
|
+ min-idle: 0
|
|
|
+ # 连接池中的最大空闲连接
|
|
|
+ max-idle: 8
|
|
|
+ # 连接池的最大数据库连接数
|
|
|
+ max-active: 8
|
|
|
+ # #连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
+ max-wait: -1ms
|
|
|
|
|
|
-# OSS云存储(正式环境)
|
|
|
+# OSS云存储(测试环境)
|
|
|
oss:
|
|
|
- config:
|
|
|
- #类型 2:阿里云 3:腾讯云 4:本地
|
|
|
- type: 2
|
|
|
- #阿里云Bucket对应域名
|
|
|
- aliyunDomain: http://img.fengqiaoart.com
|
|
|
- #阿里云路径前缀
|
|
|
- aliyunPrefix:
|
|
|
- #阿里云Bucket所在地域对应的Endpoint
|
|
|
- aliyunEndPoint: https://oss-cn-beijing.aliyuncs.com
|
|
|
- #阿里云AccessKeyId
|
|
|
- aliyunAccessKeyId: LTAI5t5hvJ38zNc2M7K8QmL6
|
|
|
- #阿里云AccessKeySecret
|
|
|
- aliyunAccessKeySecret: iS1RqnkzAmypga1T0RNNSjX2QZBELi
|
|
|
- #阿里云BucketName
|
|
|
- aliyunBucketName: fengqiao-1
|
|
|
+ config:
|
|
|
+ #类型 2:阿里云 3:腾讯云 4:本地
|
|
|
+ type: 2
|
|
|
+ #阿里云Bucket对应域名
|
|
|
+ aliyunDomain: https://img.fengqiaoart.com
|
|
|
+ #阿里云路径前缀
|
|
|
+ aliyunPrefix:
|
|
|
+ #阿里云Bucket所在地域对应的Endpoint
|
|
|
+ aliyunEndPoint: https://oss-cn-beijing.aliyuncs.com
|
|
|
+ #阿里云AccessKeyId
|
|
|
+ aliyunAccessKeyId: LTAI5t5hvJ38zNc2M7K8QmL6
|
|
|
+ #阿里云AccessKeySecret
|
|
|
+ aliyunAccessKeySecret: iS1RqnkzAmypga1T0RNNSjX2QZBELi
|
|
|
+ #阿里云BucketName
|
|
|
+ aliyunBucketName: fengqiao-1
|
|
|
|
|
|
-#通讯短信配置(正式环境)
|
|
|
+#通讯短信配置(测试环境)
|
|
|
sms:
|
|
|
- config:
|
|
|
- #类型 1:阿里云 2:腾讯云
|
|
|
- type: 1
|
|
|
- #阿里accessKeyId
|
|
|
- aliAccessKeyId: LTAI5t5hvJ38zNc2M7K8QmL6
|
|
|
- #阿里aliAccessKeySecret
|
|
|
- aliAccessKeySecret: iS1RqnkzAmypga1T0RNNSjX2QZBELi
|
|
|
- #阿里RegionId
|
|
|
- aliRegionId: cn-shanghai
|
|
|
- #短信签名
|
|
|
- aliSign: 枫桥文化艺术商城
|
|
|
- #阿里注册验证码模板编码
|
|
|
- aliRegisterTemplateCode: SMS_276405880
|
|
|
- #阿里登录验证码模板编码
|
|
|
- aliLoginTemplateCode: SMS_276405880
|
|
|
- #阿里忘记密码模板编码
|
|
|
- aliForgetTemplateCode: SMS_276405880
|
|
|
- #阿里修改手机号验证码模板编码
|
|
|
- aliPhoneTemplateCode: SMS_276405880
|
|
|
- #阿里通知买方签署短信模板编码
|
|
|
- aliBuySignTemplateCode: SMS_276400547
|
|
|
- #阿里通知卖方,经纪公司签署短信模板编码(带链接的模板与测试环境不同 https://t.esign.cn/${code})
|
|
|
- aliSellSignTemplateCode: SMS_276405880
|
|
|
+ config:
|
|
|
+ #类型 1:阿里云 2:腾讯云
|
|
|
+ type: 1
|
|
|
+ #阿里accessKeyId
|
|
|
+ aliAccessKeyId: LTAI5t5hvJ38zNc2M7K8QmL6
|
|
|
+ #阿里aliAccessKeySecret
|
|
|
+ aliAccessKeySecret: iS1RqnkzAmypga1T0RNNSjX2QZBELi
|
|
|
+ #阿里RegionId
|
|
|
+ aliRegionId: cn-shanghai
|
|
|
+ #短信签名
|
|
|
+ aliSign: xx
|
|
|
|
|
|
-# e签宝接口配置信息(正式环境)
|
|
|
-esign:
|
|
|
- #接口地址
|
|
|
- host: https://openapi.esign.cn
|
|
|
- #应用ID
|
|
|
- project_id: 5111799112
|
|
|
- #应用密钥
|
|
|
- project_scert: ceb4fbdc42d290e5f8427d201f51b2de
|
|
|
- #是否打印日志
|
|
|
- debug: true
|
|
|
- #合同模板ID
|
|
|
- templateId: 3307cd6a40ed4d6b96b095f2c332723a
|
|
|
- #印章ID用于企业自动盖章
|
|
|
- sealId: e26aaa0d-5d1a-4e44-952c-704761ebc175
|
|
|
- orgId: 1d6ab11631d64790aa6a42cb608dc49b
|
|
|
- #默认卖家信息
|
|
|
- sellerSealId: 23ab9935-32c3-47b8-9526-da4f25099513
|
|
|
- orgName: 江苏儒墨薪传艺术品有限公司
|
|
|
- sellerAccount: 18118140090
|
|
|
- #通知回调地址
|
|
|
- noticeDeveloperUrl: http://api.fengqiaoart.com/app/my/order/call/back
|
|
|
- nofirsttemplateId: 385a034365c44425bf0049ec73674b21
|
|
|
- signSkipUrl: cultureartmall://pages/my/order/order
|
|
|
-
|
|
|
-# 区块链接口信息
|
|
|
-blockchain:
|
|
|
- config:
|
|
|
- url: http://139.196.232.104:58080
|
|
|
- pageUrl: http://139.196.232.104
|
|
|
+wechat:
|
|
|
+ appId: wx61e5f94d7d793eda
|
|
|
+ mchKey: f2f4b47947e37f399684eabe78860186
|
|
|
+ mchId: 1624836978
|
|
|
+ notifyUrl: http://153.37.175.42:9092/api/wechat/pay/notify
|