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"
|