Files

98 lines
1.5 KiB
YAML
Raw Normal View History

2020-06-27 16:29:35 +08:00
server:
2020-07-09 15:16:42 +08:00
port: 8008
2020-06-27 16:29:35 +08:00
servlet:
context-path: /api
encoding:
charset: UTF-8
enabled: true
force: true
2020-06-27 16:29:35 +08:00
tomcat:
uri-encoding: UTF-8
spring:
freemarker:
check-template-location: false
profiles:
active: dev
jackson:
time-zone: GMT+8
data:
redis:
repositories:
enabled: false
#配置 Jpa
# jpa:
# properties:
# hibernate:
# dialect: org.hibernate.dialect.MySQL5InnoDBDialect
# open-in-view: true
#配置rocketmq
#rocketmq:
# nameServer: localhost:9876
# producer:
# group: yshop-group
# sendMessageTimeout: 300000
#七牛云
qiniu:
# 文件大小 /M
max-size: 15
#邮箱验证码有效时间/分钟
code:
expiration: 5
#登录图形验证码有效时间/分钟
loginCode:
expiration: 2
mybatis-plus:
check-config-location: true
configuration:
map-underscore-to-camel-case: true
global-config:
db-config:
id-type: auto
logic-delete-value: 1
logic-not-delete-value: 0
# mapper-locations: classpath*:mapper/**/*Mapper.xml
logging:
level:
2020-09-05 23:12:00 +08:00
co.yixiang: DEBUG
2020-09-05 23:42:19 +08:00
org.springframework.web: DEBUG
2020-06-27 16:29:35 +08:00
com.github.binarywang.demo.wx.mp: DEBUG
me.chanjar.weixin: DEBUG
2020-09-05 23:12:00 +08:00
2020-06-27 16:29:35 +08:00
yshop:
#相关配置
2020-09-14 20:45:24 +08:00
version: 3.1
2020-06-27 16:29:35 +08:00
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes:
# 匹配链接
urlPatterns:
jwt:
header: Authorization
# 令牌前缀
token-start-with: Bearer
online-key: yshopapp
# sm.ms 图床的 token
smms:
2020-08-13 18:52:47 +08:00
token: 1oOP3ykFDI0K6ifmtvU7c8Y1eTWZSlyl