driver-server/src/main/resources/application.yml

69 lines
1.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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'