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

47 lines
1.1 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:
active: dev
#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
# 需要权限校验url集合
needAuthEndPoints: