|
|
server:
|
|
|
port: 8080
|
|
|
|
|
|
spring:
|
|
|
datasource:
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
url: jdbc:mysql://mysql:3306/project0512?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&allowMultiQueries=true
|
|
|
username: project0512
|
|
|
password: zhang123.
|
|
|
hikari:
|
|
|
max-lifetime: 500000
|
|
|
|
|
|
redis:
|
|
|
host: redis
|
|
|
port: 6379
|
|
|
password:
|
|
|
database: 15 # 指定redis的分库(共16个0到15)
|
|
|
timeout: 5000
|
|
|
jackson:
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
|
time-zone: GMT+8
|
|
|
serialization:
|
|
|
write-dates-as-timestamps: false
|
|
|
resources:
|
|
|
static-locations: classpath:templates/,classpath:static/
|
|
|
mvc:
|
|
|
view:
|
|
|
prefix: /
|
|
|
suffix: .html
|
|
|
servlet:
|
|
|
multipart:
|
|
|
max-file-size: 10MB
|
|
|
max-request-size: 100MB
|
|
|
pagehelper:
|
|
|
reasonable: false # 禁用合理化时,如果pageNum<1或pageNum>pages会返回空数据
|
|
|
support-methods-arguments: true
|
|
|
params: count=countSql
|
|
|
row-bounds-with-count: true
|
|
|
helper-dialect: mysql
|
|
|
|
|
|
mybatis-plus:
|
|
|
configuration:
|
|
|
map-underscore-to-camel-case: true
|
|
|
auto-mapping-behavior: full
|
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
mapper-locations: classpath*:mapper/**/*Mapper.xml
|
|
|
global-config:
|
|
|
# 逻辑删除配置
|
|
|
db-config:
|
|
|
# 删除前
|
|
|
logic-not-delete-value: 1
|
|
|
# 删除后
|
|
|
logic-delete-value: 0
|
|
|
web:
|
|
|
apiPath: com.zh.project0512.controller
|
|
|
# mac图片地址
|
|
|
# uploadPath: /Users/apple/Pictures
|
|
|
# 线上图片上传位置
|
|
|
uploadPath: /static/sws/upload/
|
|
|
# 图片压缩尺寸界限(200*1024)
|
|
|
picSizeLimit: 204800
|
|
|
cdn: http://cdn.sws010.com
|
|
|
|
|
|
#springdoc:
|
|
|
# swagger-ui:
|
|
|
# # 修改Swagger UI路径
|
|
|
# path: /swagger-ui.html
|
|
|
# # 开启Swagger UI界面
|
|
|
# enabled: true
|
|
|
# api-docs:
|
|
|
# # 修改api-docs路径
|
|
|
# path: /v3/api-docs
|
|
|
# # 开启api-docs
|
|
|
# enabled: true
|
|
|
# # 配置需要生成接口文档的扫描包
|
|
|
# packages-to-scan: com.macro.mall.tiny.controller
|
|
|
# # 配置需要生成接口文档的接口路径
|
|
|
# paths-to-match: /brand/**,/admin/**
|
|
|
|
|
|
|
|
|
#mybatis:
|
|
|
# mapper-locations: classpath:mapper/*Mapper.xml
|
|
|
# type-aliases-package: com.loong.entity
|
|
|
|
|
|
#showSql
|
|
|
logging:
|
|
|
level:
|
|
|
com:
|
|
|
example:
|
|
|
mapper: debug
|
|
|
|
|
|
# mac图片地址
|
|
|
#img_upload_path: /Users/apple/Pictures
|
|
|
# 服务器图片地址
|
|
|
img_upload_path: /img/upload/
|
|
|
|
|
|
# 阿里云oss配置信息
|
|
|
oss:
|
|
|
endpoint: oss-cn-shanghai.aliyuncs.com
|
|
|
accessKeyId: LTAI5tBTznxwb5K6DQBrp4f5
|
|
|
accessKeySecret: HfXoc11JgTZt4YHzG1mnty4XpOzcz3
|
|
|
bucketName: default-bucket-zh2
|
|
|
|
|
|
wx:
|
|
|
appid: wx8c9da118d7ff7200
|
|
|
secret: a0af1bd6c400930bce8b2be54b9660c7
|
|
|
|
|
|
qywx:
|
|
|
corpid: wwf8467e6545ca4032
|
|
|
corpsecret: u0bzd2vXOib7a6sVy60fwzR9v0Xgea929CApV4eChD0
|
|
|
agentid: 1000003
|
|
|
# 抖音开放平台配置信息
|
|
|
dy:
|
|
|
clientKey: awty3wnxx90jper9 #抖音开放平台key
|
|
|
clientSecret: 88445885e689ce242a9dae43a047637e #抖音开放平台密钥
|
|
|
scope: data.external.user,data.external.item,fans.data,user_info,renew_refresh_token,data.external.user#需要用户开放的权限
|
|
|
responseType: code #填写code就行
|
|
|
redirectUri: douyin.oa00.com #扫码之后的回调地址
|
|
|
state: false
|
|
|
|
|
|
ks:
|
|
|
appid: ks678354694850100396
|
|
|
secret: ypJaxhE6340upTxMicajnA
|
|
|
redirectUrl: https://kuaishou.oa00.com
|