You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
2.8 KiB
YAML
120 lines
2.8 KiB
YAML
server:
|
|
port: 8089
|
|
|
|
spring:
|
|
application:
|
|
name: admin
|
|
profiles:
|
|
active: dev
|
|
jackson:
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
time-zone: GMT+8
|
|
cloud:
|
|
nacos:
|
|
discovery:
|
|
server-addr: localhost:8848
|
|
config:
|
|
server-addr: localhost:8848
|
|
file-extension: yml
|
|
shared-configs:
|
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 50MB # 设置单个文件最大大小为10MB
|
|
max-request-size: 100MB # 设置多个文件大小为100MB
|
|
# 天爱图形验证码
|
|
captcha:
|
|
secondary:
|
|
enabled: true
|
|
|
|
# mybatis-plus相关配置
|
|
mybatis-plus:
|
|
mapper-locations: classpath*:/mapper/**/*Mapper.xml
|
|
global-config:
|
|
banner: false
|
|
db-config:
|
|
id-type: auto
|
|
insert-strategy: not_empty
|
|
update-strategy: not_empty
|
|
logic-delete-value: "NOW()" # 逻辑已删除值(使用当前时间标识)
|
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
|
|
|
|
|
# BallCat 相关配置
|
|
ballcat:
|
|
security:
|
|
# 前端传输密码的 AES 加密密钥
|
|
password-secret-key: '==market-scrm==='
|
|
oauth2:
|
|
authorizationserver:
|
|
# 登陆验证码是否开启
|
|
login-captcha-enabled: true
|
|
# 内嵌的表单登陆页是否开启
|
|
login-page-enabled: false
|
|
resourceserver:
|
|
## 忽略鉴权的 url 列表
|
|
ignore-urls:
|
|
- /public/**
|
|
- /actuator/**
|
|
- /doc.html
|
|
- /v2/api-docs/**
|
|
- /v3/api-docs/**
|
|
- /swagger-resources/**
|
|
- /swagger-ui/**
|
|
- /webjars/**
|
|
- /bycdao-ui/**
|
|
- /favicon.ico
|
|
- /captcha/**
|
|
- /outside/**
|
|
- /wechat/global/setting
|
|
- /pay/aliPay/pay-notify
|
|
- /api/wechat/callback
|
|
- /wechat/callback
|
|
# 项目 redis 缓存的 key 前缀
|
|
redis:
|
|
key-prefix: 'marketing:'
|
|
|
|
springdoc:
|
|
# 开启 oauth2 端点显示
|
|
show-oauth2-endpoints: true
|
|
swagger-ui:
|
|
oauth:
|
|
client-id: test
|
|
client-secret: test
|
|
display-request-duration: true
|
|
disable-swagger-default-url: true
|
|
persist-authorization: true
|
|
|
|
# 文件存储路径
|
|
file:
|
|
mac:
|
|
path: ~/file/
|
|
avatar: ~/avatar/
|
|
clueFilePath: ~/cluefile/
|
|
systemSeparator: /
|
|
linux:
|
|
path: /home/marketing-scrm/file/
|
|
avatar: /home/marketing-scrm/avatar/
|
|
clueFilePath: /home/marketing-scrm/cluefile/
|
|
systemSeparator: /
|
|
windows:
|
|
path: C:\marketing-scrm\file\
|
|
avatar: C:\marketing-scrm\avatar\
|
|
clueFilePath: C:\marketing-scrm\cluefile\
|
|
systemSeparator: \
|
|
# 文件大小 /M
|
|
maxSize: 300
|
|
avatarMaxSize: 5
|
|
|
|
|
|
elasticjob:
|
|
zookeeper:
|
|
namespace: springboot-elasticjob
|
|
server-list: localhost:2181
|
|
|
|
snowflake:
|
|
workerId: 10
|
|
datacenterId: 10
|
|
|
|
|