78 lines
2.0 KiB
YAML
78 lines
2.0 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
|
||
- /driver-api/tdQuestion/duima/list
|
||
- /driver-api/tdQuestion/duima/update
|
||
- /driver-api/payNoticeLog
|
||
- /driver-api/tdQuestion/queryQuestionById
|
||
- /driver-api/tdQuestion/queryQuestionByIdList
|
||
- /driver-api/tdQuestion/queryQuestion
|
||
- /driver-api/tdQuestion/getTestQuestion
|
||
- /driver-api/tdQuestion/questionCategory
|
||
- /driver-api/tdMember/queryMember
|
||
|
||
# 需要权限校验url集合
|
||
needAuthEndPoints:
|
||
|
||
# token 有效期1年
|
||
token:
|
||
expireTime: 365
|
||
|
||
# 短信验证码失效时间5分钟
|
||
message:
|
||
code:
|
||
expireTime: 300
|
||
|
||
wechatpay:
|
||
appId: wx756a7425037609fb
|
||
appSecret: 3e8053032b16c574e38d554ddd438cfd
|
||
mchId: 1650477646
|
||
apiV3Key: JingWuLianJiaKao20120813ZhouHong
|
||
mchSerialNo: 52974C99DFCC518EA2E5AD20C3753E38B924868D
|
||
# 路径设置没生效 不知道原因
|
||
privateKeyPath: classpath*:/wechatPay/apiclient_key.pem
|
||
payNoticeUrl: https://jwl.ahduima.com/driver-api/payNoticeLog
|
||
|
||
|