小程序开发-服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

167 lines
4.1 KiB

# 端口
server:
port: 9200
# 多环境配置
spring:
profiles:
active: dev
application:
name: server
# 允许循环引用(临时解决方案)
main:
allow-circular-references: true
# 修复 Springfox 与 Spring Boot 2.6+ 兼容性问题
mvc:
pathmatch:
matching-strategy: ant_path_matcher
# 启用 SpringDoc OpenAPI
springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
# 启用 Knife4j
knife4j:
enable: true
# 连接池配置
datasource:
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 30000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
test-while-idle: true
test-on-borrow: true
test-on-return: false
remove-abandoned: true
remove-abandoned-timeout: 1800
#pool-prepared-statements: false
#max-pool-prepared-statement-per-connection-size: 20
filters: stat, wall
validation-query: SELECT 'x'
aop-patterns: com.gxwebsoft.*.*.service.*
stat-view-servlet:
url-pattern: /druid/*
reset-enable: true
login-username: admin
login-password: admin
# json时间格式设置
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# 设置上传文件大小
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
# 邮件服务器配置
mail:
host: smtp.qq.com
username: 170083662@qq.com
password: mnfokualhfaucaie
default-encoding: UTF-8
properties:
mail:
smtp:
auth: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
port: 465
# Mybatis-plus配置
mybatis-plus:
mapper-locations: classpath*:com/gxwebsoft/**/*Mapper.xml
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
global-config:
:banner: false
db-config:
id-type: auto
logic-delete-value: 1
logic-not-delete-value: 0
# 框架配置
config:
open-office-home: C:/OpenOffice4/
swagger-base-package: com.gxwebsoft
swagger-title: 网宿软件 API文档
swagger-description: websoft - 基于java spring、vue3、antd构建的前后端分离快速开发框架
swagger-version: 2.0
token-key: WLgNsWJ8rPjRtnjzX/Gx2RGS80Kwnm/ZeLbvIL+NrBs=
# 主服务器
server-url: https://server.s209.websoft.top/api
# 文件服务器
file-server: https://file.wsdns.cn
upload-path: /Users/gxwebsoft/Documents/uploads/
local-upload-path: /Users/gxwebsoft/Documents/uploads/
# 阿里云OSS云存储
endpoint: https://oss-cn-shenzhen.aliyuncs.com
accessKeyId: LTAI4GKGZ9Z2Z8JZ77c3GNZP
accessKeySecret: BiDkpS7UXj72HWwDWaFZxiXjNFBNCM
bucketName: oss-gxwebsoft
bucketDomain: https://oss.wsdns.cn
aliyunDomain: https://oss-gxwebsoft.oss-cn-shenzhen.aliyuncs.com
# 商城订单配置
shop:
order:
# 测试账号配置
test-account:
enabled: true
phone-numbers:
- "13737128880"
test-pay-amount: 0.01
# 租户特殊规则配置
tenant-rules:
- tenant-id: 10324
tenant-name: "百色中学"
min-amount: 10
min-amount-message: "捐款金额最低不能少于10元,感谢您的爱心捐赠^_^"
enabled: true
# 默认配置
default-config:
default-comments: "暂无"
min-order-amount: 0
order-timeout-minutes: 30
# 证书配置
certificate:
# 证书加载模式: CLASSPATH, FILESYSTEM, VOLUME
load-mode: CLASSPATH
# Docker挂载卷证书路径
cert-root-path: /app/certs
# 开发环境证书路径前缀
dev-cert-path: dev
# 微信支付证书配置
wechat-pay:
dev:
api-v3-key: "0kF5OlPr482EZwtn9zGufUcqa7ovgxRL"
private-key-file: "apiclient_key.pem"
apiclient-cert-file: "apiclient_cert.pem"
wechatpay-cert-file: "wechatpay_cert.pem"
prod-base-path: "/file"
cert-dir: "wechat"
# 支付宝证书配置
alipay:
cert-dir: "alipay"
app-private-key-file: "app_private_key.pem"
app-cert-public-key-file: "appCertPublicKey.crt"
alipay-cert-public-key-file: "alipayCertPublicKey.crt"
alipay-root-cert-file: "alipayRootCert.crt"