湖州项目后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

101 lines
3.1 KiB

project:
# 项目访问url
url: http://127.0.0.1
# 前端访问url
front-end-url: http://localhost:3100
# 文件上传路径(不要写以~开头的路径会导致无法访问)
file-upload-path: /Users/guoyan/development/easy-vben
node: 127.0.0.1:${server.port}
springdoc:
api-docs:
#是否开启文档功能
enabled: true
#包扫描路径
packagesToScan: com.easy.admin
server:
# 端口号
port: 8001
logging:
file:
path: logs
spring:
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
elasticsearch:
rest:
# 连接超时时间
connection-timeout: 1s
username:
password:
# 读取超时时间
read-timeout: 30s
# es rest 接口地址,多个用逗号隔开
uris: ${ES_HOST:127.0.0.1}:${ES_PORT:9200}
# Redis
redis:
# 数据库索引(默认为0)
database: 9
# 服务器地址
host: 127.0.0.1
# 服务器连接端口
port: 6379
# 服务器连接密码(默认为空)
password: root
jedis:
pool:
# 连接池最大连接数(使用负值表示没有限制)
max-active: 8
# 连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1
# 连接池中的最大空闲连接
max-idle: 8
# 连接池中的最小空闲连接
min-idle: 0
# 连接超时时间 单位: 秒
timeout: 10
# 默认的数据过期时间 30 分钟 单位: 秒
expire: 1800
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://${DB_HOST:127.0.0.1}:${DB_PORT:3306}/${DB_NAME:guoyan_projectMG}?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMulQueries=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullDatabaseMeansCurrent=true&useInformationSchema=true
username: ${DB_USERNAME:root}
password: ${DB_PASSWORD:root}
aj:
captcha:
# 滑动验证,底图路径,不配置将使用默认图片
jigsaw: classpath:images/verification
async:
executor:
thread:
# 配置核心线程数
core-pool-size: 5
# 配置最大线程数
max-pool-size: 5
# 配置队列大小
queue-capacity: 999
# 配置线程池中的线程的名称前缀
name-prefix: async-
# 配置线程最大空闲时间 s
keep-alive-seconds: 30
jeecg:
uploadType: local
path:
#文件上传根目录 设置
upload: /opt/guoyan/upload
#webapp文件路径
webapp: /opt/guoyan/webapp
file:
storage:
# 文件存储方式:local - 本地存储 / oss - 对象存储
# type: oss
type: local
# 文件存放(local - 默认文件夹名称 / oss - 默认bucket名称),命名规范:只能包括小写字母、数字和短划线(-);必须以小写字母或者数字开头和结尾;长度为3~63个字符。
default-bucket: easy-default
# local - 本地存储
local:
# 用于存放上传的文件、临时文件等,以目录分隔符结尾(不要写以~开头的路径会导致无法访问)
path: /Users/guoyan/development/easy-vben/