69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
server:
|
||
port: 8888
|
||
servlet:
|
||
context-path: '/driver-api'
|
||
|
||
spring:
|
||
application:
|
||
name: '@artifactId@'
|
||
profiles:
|
||
active: test
|
||
#mybatis
|
||
mybatis-plus:
|
||
mapper-locations: classpath*:/mapper/**Mapper.xml
|
||
typeAliasesPackage: com.jwl.driver.server.entity
|
||
global-config:
|
||
column-underline: false
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
cache-enabled: false
|
||
|
||
# 分页配置
|
||
pagehelper:
|
||
helper-dialect: mysql
|
||
reasonable: true
|
||
support-methods-arguments: true
|
||
params: count=countSql
|
||
|
||
# Knife4j配置
|
||
knife4j:
|
||
# 是否开启增强模式
|
||
enable: true
|
||
|
||
# 是否需要校验token
|
||
driver:
|
||
auth-config:
|
||
# 约定为若 preAuth 为 true,则所有请求(除不需权限校验url集合noAuthEndPoints外)都需要身份认证
|
||
# 为 false,则所有请求(除需要权限校验url集合needAuthEndPoints外)都不需要身份认证
|
||
preAuth: true
|
||
# 不需权限校验url集合
|
||
noAuthEndPoints:
|
||
- /driver-api/v2/api-docs
|
||
- /driver-api/swagger-resources
|
||
- /driver-api/favicon.ico
|
||
- /driver-api/tdSysUser/code
|
||
- /tdQuestion/duima/list
|
||
- /tdQuestion/duima/update
|
||
|
||
# 需要权限校验url集合
|
||
needAuthEndPoints:
|
||
|
||
# token 有效期1年
|
||
token:
|
||
expireTime: 365
|
||
|
||
# 短信验证码失效时间5分钟
|
||
message:
|
||
code:
|
||
expireTime: 300
|
||
|
||
|
||
|
||
wechatpay:
|
||
appId: 'wx756a7425037609fb'
|
||
mchId: '1650477646'
|
||
apiV3Key: 'JingWuLianJiaKao20120813ZhouHong'
|
||
mchSerialNo: '52974C99DFCC518EA2E5AD20C3753E38B924868D'
|
||
privateKeyPath: 'classpath*:/wechatPay/**Mapper.xml'
|
||
|