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

78 lines
2.0 KiB
YAML
Raw Normal View History

2023-08-11 11:51:09 +08:00
server:
port: 8888
2023-08-12 14:42:57 +08:00
servlet:
context-path: '/driver-api'
2023-08-11 11:51:09 +08:00
spring:
application:
name: '@artifactId@'
profiles:
2023-08-19 16:29:37 +08:00
active: test
2023-08-11 11:51:09 +08:00
#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
2023-08-12 14:42:57 +08:00
# 是否需要校验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
2023-08-13 00:19:00 +08:00
- /driver-api/tdSysUser/code
2023-08-23 23:58:25 +08:00
- /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
2023-08-12 14:42:57 +08:00
# 需要权限校验url集合
needAuthEndPoints:
2023-08-13 00:19:00 +08:00
# token 有效期1年
token:
expireTime: 365
# 短信验证码失效时间5分钟
message:
code:
expireTime: 300
2023-08-19 00:39:11 +08:00
wechatpay:
2023-08-19 17:24:51 +08:00
appId: wx756a7425037609fb
appSecret: 3e8053032b16c574e38d554ddd438cfd
mchId: 1650477646
apiV3Key: JingWuLianJiaKao20120813ZhouHong
mchSerialNo: 52974C99DFCC518EA2E5AD20C3753E38B924868D
2023-08-24 12:52:19 +08:00
# 路径设置没生效 不知道原因
privateKeyPath: classpath*:/wechatPay/apiclient_key.pem
2023-08-19 17:24:51 +08:00
payNoticeUrl: https://jwl.ahduima.com/driver-api/payNoticeLog
2023-08-19 00:39:11 +08:00