98 lines
2.6 KiB
YAML
98 lines
2.6 KiB
YAML
![]() |
server:
|
|||
|
port: 9999
|
|||
|
servlet:
|
|||
|
context-path: /admin
|
|||
|
|
|||
|
spring:
|
|||
|
application:
|
|||
|
name: @project.artifactId@
|
|||
|
# 缓存相关配置
|
|||
|
cache:
|
|||
|
type: redis
|
|||
|
data:
|
|||
|
redis:
|
|||
|
host: 110.41.142.124
|
|||
|
# 数据库相关配置
|
|||
|
datasource:
|
|||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|||
|
username: root
|
|||
|
password: Xg137839
|
|||
|
url: jdbc:mysql://110.41.142.124:3306/backend?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&nullCatalogMeansCurrent=true
|
|||
|
# 定时任务属性配置
|
|||
|
quartz:
|
|||
|
properties:
|
|||
|
org:
|
|||
|
quartz:
|
|||
|
scheduler:
|
|||
|
instanceName: clusteredScheduler
|
|||
|
instanceId: AUTO
|
|||
|
jobStore:
|
|||
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
|||
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
|||
|
tablePrefix: QRTZ_
|
|||
|
isClustered: true
|
|||
|
clusterCheckinInterval: 10000
|
|||
|
useProperties: false
|
|||
|
threadPool:
|
|||
|
class: org.quartz.simpl.SimpleThreadPool
|
|||
|
threadCount: 50
|
|||
|
threadPriority: 5
|
|||
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
|||
|
job-store-type: jdbc
|
|||
|
jdbc:
|
|||
|
initialize-schema: always # 生产注意设置为 never
|
|||
|
# 上传文件大小限制
|
|||
|
servlet:
|
|||
|
multipart:
|
|||
|
max-file-size: 100MB
|
|||
|
max-request-size: 100MB
|
|||
|
mvc:
|
|||
|
static-path-pattern: /static/**
|
|||
|
|
|||
|
gateway:
|
|||
|
# 前端密码登录解密密钥,和前端 .env 保存一致(16位)
|
|||
|
encodeKey: thanks,pig4cloud
|
|||
|
# 跳过验证码的客户端 clientId1,clientId2
|
|||
|
ignore-clients: test
|
|||
|
|
|||
|
# 本地文件系统
|
|||
|
file:
|
|||
|
local:
|
|||
|
enable: true
|
|||
|
base-path: /Users/lengleng/Downloads/img
|
|||
|
|
|||
|
## spring security 对外暴露接口设置
|
|||
|
security:
|
|||
|
oauth2:
|
|||
|
ignore:
|
|||
|
urls:
|
|||
|
- /webjars/**
|
|||
|
- /v3/api-docs/**
|
|||
|
- /doc.html
|
|||
|
- /swagger-ui.html
|
|||
|
- /swagger-ui/**
|
|||
|
- /swagger-resources
|
|||
|
- /token/check_token
|
|||
|
- /error
|
|||
|
- /actuator/**
|
|||
|
- /code/**
|
|||
|
- /static/**
|
|||
|
|
|||
|
|
|||
|
#--------------如下配置尽量不要变动-------------
|
|||
|
# mybatis-plus 配置
|
|||
|
mybatis-plus:
|
|||
|
mapper-locations: classpath*:/mapper/*Mapper.xml
|
|||
|
global-config:
|
|||
|
banner: false
|
|||
|
db-config:
|
|||
|
id-type: auto
|
|||
|
where-strategy: not_empty
|
|||
|
insert-strategy: not_empty
|
|||
|
update-strategy: not_null
|
|||
|
type-handlers-package: com.pig4cloud.pig.common.mybatis.handler
|
|||
|
configuration:
|
|||
|
jdbc-type-for-null: 'null'
|
|||
|
call-setters-on-nulls: true
|
|||
|
shrink-whitespaces-in-sql: true
|