rest:
|
auth-open: true #jwt鉴权机制是否开启(true 或者 false)
|
sign-open: false #签名机制是否开启(true或false)
|
swagger-open: true #Swagger接口文档是否开启(true或false)
|
file-upload-path: D:\work2018\apache-tomcat-8.0.33\webapps\upload\ #文件上传目录(不配置的话为java.io.tmpdir目录)
|
app-server-path: http://m.mymtmy.com:${server.port}/rest #APP项目服务器地址
|
|
mybatis-plus:
|
configuration:
|
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl #输出Sql,如需打印Sql注释该配置
|
|
spring:
|
datasource:
|
url: jdbc:mysql://140.210.218.57:8306/meiyadb-dev?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
|
username: root
|
password: Root2018!
|
filters: log4j,wall,mergeStat
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
type: com.alibaba.druid.pool.DruidDataSource
|
# 数据源其他配置
|
druid:
|
# 配置初始化大小、最小、最大线程数
|
initialSize: 5
|
minIdle: 20
|
# CPU核数+1,也可以大些但不要超过20,数据库加锁时连接过多性能下降
|
maxActive: 20
|
# 最大等待时间,内网:800,外网:1200(三次握手1s)
|
maxWait: 60000
|
timeBetweenEvictionRunsMillis: 60000
|
# 配置一个连接在池中最大空间时间,单位是毫秒
|
minEvictableIdleTimeMillis: 300000
|
validationQuery: SELECT 1
|
testWhileIdle: true
|
# 设置从连接池获取连接时是否检查连接有效性,true检查,false不检查
|
testOnBorrow: true
|
# 设置从连接池归还连接时是否检查连接有效性,true检查,false不检查
|
testOnReturn: true
|
# 可以支持PSCache(提升写入、查询效率)
|
poolPreparedStatements: true
|
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
filters: stat,wall,log4j
|
# 保持长连接
|
keepAlive: true
|
maxPoolPreparedStatementPerConnectionSize: 20
|
useGlobalDataSourceStat: true
|
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
|
redis:
|
host: 140.210.218.57
|
port: 8379
|
password: RediS2018
|
timeout: 5000ms #连接超时时间(毫秒)
|
database: 5
|
jedis:
|
pool:
|
max-idle: 50 # 连接池中的最大空闲连接
|
min-idle: 1 # 连接池中的最小空闲连接
|
max-active: -1 # 连接池最大连接数(使用负值表示没有限制)
|
max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
thymeleaf:
|
prefix: classpath:/views/ #添加路径前缀,默认路径/templates/
|
cache: false #开启缓存-true,关闭缓存-false
|
|
logging:
|
level.root: error
|
level.com.sinata: info
|
file: logs/meiya-rest.log
|
|
pay:
|
# 支付宝配置
|
ali_private_key: xxx
|
ali_public_key: xxx
|
ali_app_id: 202xxxxxxxxxx
|
ali_notify_url: http://m.mymtmy.com:${server.port}/rest/mall/pay/notify
|
ali_return_url: http://m.mymtmy.com:${server.port}/#/pay_callback
|
ali_seller_id: xxxxxxxxx@qq.com
|
# 微信支付配置
|
wx_app_id: wx9e0a20d9ffcacc05 #微信AppID
|
wx_mch_Id: 1615082226
|
wx_pay_key: meitianmeiya13882090306111111111
|
wx_cert_path: /tmp/apiclient_cert.p12
|
wx_notify_url: http://m.mymtmy.com:${server.port}/rest/mall/pay/notify
|
wx_secret_key: meitianmeiya13882090306111111111
|
wx_public_secret_key: 3cd8a4812da753cbda4edd062bd11b63
|
wx_service_app_id: wx9e0a20d9ffcacc05 #微信服务号ID
|
juhe:
|
appkey: 95cd620c933e53b79aac94edfd76ca4a
|
openid: JH1ad5c53745350580f7c24ca4b09717de
|