2019-04-14 16:20:04 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 8080
|
2020-02-24 02:44:53 +08:00
|
|
|
|
tomcat:
|
2019-08-24 00:15:45 +08:00
|
|
|
|
max-swallow-size: -1
|
2020-11-28 17:20:10 +08:00
|
|
|
|
error:
|
|
|
|
|
include-exception: true
|
|
|
|
|
include-stacktrace: ALWAYS
|
|
|
|
|
include-message: ALWAYS
|
2019-04-14 16:20:04 +08:00
|
|
|
|
servlet:
|
|
|
|
|
context-path: /jeecg-boot
|
2019-11-21 18:17:25 +08:00
|
|
|
|
compression:
|
|
|
|
|
enabled: true
|
|
|
|
|
min-response-size: 1024
|
|
|
|
|
mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
|
2020-02-24 02:44:53 +08:00
|
|
|
|
|
2019-04-14 16:20:04 +08:00
|
|
|
|
management:
|
2021-06-02 15:51:19 +08:00
|
|
|
|
endpoints:
|
|
|
|
|
web:
|
|
|
|
|
exposure:
|
|
|
|
|
include: metrics,httptrace
|
2020-02-24 02:44:53 +08:00
|
|
|
|
|
2019-04-14 16:20:04 +08:00
|
|
|
|
spring:
|
2019-07-09 16:25:41 +08:00
|
|
|
|
servlet:
|
2021-06-02 15:51:19 +08:00
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 10MB
|
|
|
|
|
max-request-size: 10MB
|
2019-04-14 16:20:04 +08:00
|
|
|
|
mail:
|
|
|
|
|
host: smtp.163.com
|
2023-03-07 11:56:20 +08:00
|
|
|
|
username: jeecgos@163.com
|
2019-04-14 16:20:04 +08:00
|
|
|
|
password: ??
|
|
|
|
|
properties:
|
2019-07-05 15:38:38 +08:00
|
|
|
|
mail:
|
|
|
|
|
smtp:
|
2019-04-14 16:20:04 +08:00
|
|
|
|
auth: true
|
2019-07-05 15:38:38 +08:00
|
|
|
|
starttls:
|
2019-04-14 16:20:04 +08:00
|
|
|
|
enable: true
|
|
|
|
|
required: true
|
|
|
|
|
## quartz定时任务,采用数据库方式
|
|
|
|
|
quartz:
|
|
|
|
|
job-store-type: jdbc
|
2020-05-03 12:43:53 +08:00
|
|
|
|
initialize-schema: embedded
|
2021-08-13 15:27:30 +08:00
|
|
|
|
#定时任务启动开关,true-开 false-关
|
2020-05-03 12:43:53 +08:00
|
|
|
|
auto-startup: true
|
2022-05-31 10:35:46 +08:00
|
|
|
|
#延迟1秒启动定时任务
|
|
|
|
|
startup-delay: 1s
|
2020-05-03 12:43:53 +08:00
|
|
|
|
#启动时更新己存在的Job
|
|
|
|
|
overwrite-existing-jobs: true
|
|
|
|
|
properties:
|
|
|
|
|
org:
|
|
|
|
|
quartz:
|
|
|
|
|
scheduler:
|
|
|
|
|
instanceName: MyScheduler
|
|
|
|
|
instanceId: AUTO
|
|
|
|
|
jobStore:
|
2022-04-18 09:37:28 +08:00
|
|
|
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
2020-05-03 12:43:53 +08:00
|
|
|
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
|
|
|
|
tablePrefix: QRTZ_
|
|
|
|
|
isClustered: true
|
2022-05-31 10:35:46 +08:00
|
|
|
|
misfireThreshold: 12000
|
|
|
|
|
clusterCheckinInterval: 15000
|
2020-05-03 12:43:53 +08:00
|
|
|
|
threadPool:
|
|
|
|
|
class: org.quartz.simpl.SimpleThreadPool
|
|
|
|
|
threadCount: 10
|
|
|
|
|
threadPriority: 5
|
|
|
|
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#json 时间戳统一转换
|
|
|
|
|
jackson:
|
2022-09-29 09:33:00 +08:00
|
|
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
|
|
|
time-zone: GMT+8
|
2020-11-28 17:20:10 +08:00
|
|
|
|
jpa:
|
|
|
|
|
open-in-view: false
|
|
|
|
|
aop:
|
|
|
|
|
proxy-target-class: true
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#配置freemarker
|
|
|
|
|
freemarker:
|
|
|
|
|
# 设置模板后缀名
|
|
|
|
|
suffix: .ftl
|
|
|
|
|
# 设置文档类型
|
|
|
|
|
content-type: text/html
|
|
|
|
|
# 设置页面编码格式
|
|
|
|
|
charset: UTF-8
|
|
|
|
|
# 设置页面缓存
|
|
|
|
|
cache: false
|
2019-05-19 18:54:09 +08:00
|
|
|
|
prefer-file-system-access: false
|
2019-04-14 16:20:04 +08:00
|
|
|
|
# 设置ftl文件路径
|
|
|
|
|
template-loader-path:
|
|
|
|
|
- classpath:/templates
|
2023-03-05 11:29:47 +08:00
|
|
|
|
template_update_delay: 0
|
2019-04-14 16:20:04 +08:00
|
|
|
|
# 设置静态文件路径,js,css等
|
|
|
|
|
mvc:
|
|
|
|
|
static-path-pattern: /**
|
2022-04-18 09:37:28 +08:00
|
|
|
|
#Spring Boot 2.6+后映射匹配的默认策略已从AntPathMatcher更改为PathPatternParser,需要手动指定为ant-path-matcher
|
|
|
|
|
pathmatch:
|
|
|
|
|
matching-strategy: ant_path_matcher
|
2019-04-14 16:20:04 +08:00
|
|
|
|
resource:
|
|
|
|
|
static-locations: classpath:/static/,classpath:/public/
|
|
|
|
|
autoconfigure:
|
|
|
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
|
|
|
|
datasource:
|
|
|
|
|
druid:
|
|
|
|
|
stat-view-servlet:
|
2019-07-05 15:38:38 +08:00
|
|
|
|
enabled: true
|
2019-04-14 16:20:04 +08:00
|
|
|
|
loginUsername: admin
|
|
|
|
|
loginPassword: 123456
|
2019-08-24 00:15:45 +08:00
|
|
|
|
allow:
|
2019-07-05 15:38:38 +08:00
|
|
|
|
web-stat-filter:
|
|
|
|
|
enabled: true
|
2019-04-14 16:20:04 +08:00
|
|
|
|
dynamic:
|
|
|
|
|
druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
|
|
|
|
|
# 连接池的配置信息
|
|
|
|
|
# 初始化大小,最小,最大
|
|
|
|
|
initial-size: 5
|
|
|
|
|
min-idle: 5
|
|
|
|
|
maxActive: 20
|
|
|
|
|
# 配置获取连接等待超时的时间
|
|
|
|
|
maxWait: 60000
|
|
|
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
|
|
timeBetweenEvictionRunsMillis: 60000
|
|
|
|
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
|
|
|
|
minEvictableIdleTimeMillis: 300000
|
2021-08-13 15:27:30 +08:00
|
|
|
|
validationQuery: SELECT 1
|
2019-04-14 16:20:04 +08:00
|
|
|
|
testWhileIdle: true
|
|
|
|
|
testOnBorrow: false
|
|
|
|
|
testOnReturn: false
|
|
|
|
|
# 打开PSCache,并且指定每个连接上PSCache的大小
|
|
|
|
|
poolPreparedStatements: true
|
|
|
|
|
maxPoolPreparedStatementPerConnectionSize: 20
|
|
|
|
|
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
|
|
|
|
|
filters: stat,wall,slf4j
|
|
|
|
|
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
|
|
|
|
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
|
|
|
|
datasource:
|
|
|
|
|
master:
|
2022-04-16 17:16:36 +08:00
|
|
|
|
url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
2019-04-14 16:20:04 +08:00
|
|
|
|
username: root
|
|
|
|
|
password: root
|
2020-07-11 12:54:57 +08:00
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2019-04-14 16:20:04 +08:00
|
|
|
|
# 多数据源配置
|
|
|
|
|
#multi-datasource1:
|
2020-07-13 16:43:23 +08:00
|
|
|
|
#url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#username: root
|
|
|
|
|
#password: root
|
2020-07-11 12:54:57 +08:00
|
|
|
|
#driver-class-name: com.mysql.cj.jdbc.Driver
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#redis 配置
|
|
|
|
|
redis:
|
|
|
|
|
database: 0
|
|
|
|
|
host: 127.0.0.1
|
|
|
|
|
port: 6379
|
2022-08-12 14:14:11 +08:00
|
|
|
|
password: ''
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#mybatis plus 设置
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
|
2019-07-05 15:38:38 +08:00
|
|
|
|
global-config:
|
|
|
|
|
# 关闭MP3.0自带的banner
|
|
|
|
|
banner: false
|
|
|
|
|
db-config:
|
2021-01-23 23:59:31 +08:00
|
|
|
|
#主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
|
2020-09-23 18:02:16 +08:00
|
|
|
|
id-type: ASSIGN_ID
|
2019-07-05 15:38:38 +08:00
|
|
|
|
# 默认数据库表下划线命名
|
|
|
|
|
table-underline: true
|
2020-02-24 02:44:53 +08:00
|
|
|
|
configuration:
|
2019-07-05 15:38:38 +08:00
|
|
|
|
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
|
|
|
|
|
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
2020-02-24 02:44:53 +08:00
|
|
|
|
# 返回类型为Map,显示null对应的字段
|
|
|
|
|
call-setters-on-nulls: true
|
2021-06-02 15:51:19 +08:00
|
|
|
|
#jeecg专用配置
|
2022-05-18 16:16:36 +08:00
|
|
|
|
minidao:
|
2021-04-05 18:53:14 +08:00
|
|
|
|
base-package: org.jeecg.modules.jmreport.*
|
2022-05-18 16:16:36 +08:00
|
|
|
|
jeecg:
|
2021-10-27 10:28:14 +08:00
|
|
|
|
# 是否启用安全模式
|
|
|
|
|
safeMode: false
|
2021-08-13 15:27:30 +08:00
|
|
|
|
# 签名密钥串(前后端要一致,正式发布请自行修改)
|
|
|
|
|
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
|
2022-08-06 17:02:37 +08:00
|
|
|
|
# 签名拦截接口
|
|
|
|
|
signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys
|
2022-08-12 14:14:11 +08:00
|
|
|
|
#local、minio、alioss
|
2022-04-18 09:37:28 +08:00
|
|
|
|
uploadType: local
|
2022-07-20 18:09:53 +08:00
|
|
|
|
# 前端访问地址
|
|
|
|
|
domainUrl:
|
|
|
|
|
pc: http://localhost:3100
|
|
|
|
|
app: http://localhost:8051
|
2022-05-18 16:16:36 +08:00
|
|
|
|
path:
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#文件上传根目录 设置
|
2021-06-02 15:51:19 +08:00
|
|
|
|
upload: /opt/upFiles
|
2019-04-14 16:20:04 +08:00
|
|
|
|
#webapp文件路径
|
2021-06-02 15:51:19 +08:00
|
|
|
|
webapp: /opt/webapp
|
2019-10-18 18:37:41 +08:00
|
|
|
|
shiro:
|
2020-07-11 12:54:57 +08:00
|
|
|
|
excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
|
2021-06-02 15:51:19 +08:00
|
|
|
|
#阿里云oss存储和大鱼短信秘钥配置
|
2019-10-18 18:37:41 +08:00
|
|
|
|
oss:
|
2020-05-03 12:43:53 +08:00
|
|
|
|
accessKey: ??
|
2019-10-18 18:37:41 +08:00
|
|
|
|
secretKey: ??
|
2021-06-02 15:51:19 +08:00
|
|
|
|
endpoint: oss-cn-beijing.aliyuncs.com
|
2021-08-13 15:27:30 +08:00
|
|
|
|
bucketName: jeecgdev
|
2020-05-03 12:43:53 +08:00
|
|
|
|
# ElasticSearch 6设置
|
2019-10-18 18:37:41 +08:00
|
|
|
|
elasticsearch:
|
2020-11-28 17:20:10 +08:00
|
|
|
|
cluster-name: jeecg-ES
|
2019-10-18 18:37:41 +08:00
|
|
|
|
cluster-nodes: 127.0.0.1:9200
|
2020-05-03 12:43:53 +08:00
|
|
|
|
check-enabled: false
|
2019-12-25 13:14:08 +08:00
|
|
|
|
# 在线预览文件服务器地址配置
|
2023-03-05 11:29:47 +08:00
|
|
|
|
file-view-domain: http://fileview.jeecg.com
|
2020-02-24 02:44:53 +08:00
|
|
|
|
# minio文件上传
|
|
|
|
|
minio:
|
|
|
|
|
minio_url: http://minio.jeecg.com
|
|
|
|
|
minio_name: ??
|
|
|
|
|
minio_pass: ??
|
2020-05-03 12:43:53 +08:00
|
|
|
|
bucketName: otatest
|
2020-07-11 12:54:57 +08:00
|
|
|
|
#大屏报表参数设置
|
|
|
|
|
jmreport:
|
2020-11-28 17:20:10 +08:00
|
|
|
|
mode: dev
|
2021-03-17 18:43:42 +08:00
|
|
|
|
#数据字典是否进行saas数据隔离,自己看自己的字典
|
2021-01-23 23:59:31 +08:00
|
|
|
|
saas: false
|
2020-11-28 17:20:10 +08:00
|
|
|
|
#xxl-job配置
|
|
|
|
|
xxljob:
|
|
|
|
|
enabled: false
|
|
|
|
|
adminAddresses: http://127.0.0.1:9080/xxl-job-admin
|
|
|
|
|
appname: ${spring.application.name}
|
|
|
|
|
accessToken: ''
|
|
|
|
|
address: 127.0.0.1:30007
|
|
|
|
|
ip: 127.0.0.1
|
|
|
|
|
port: 30007
|
|
|
|
|
logPath: logs/jeecg/job/jobhandler/
|
|
|
|
|
logRetentionDays: 30
|
|
|
|
|
#分布式锁配置
|
|
|
|
|
redisson:
|
|
|
|
|
address: 127.0.0.1:6379
|
|
|
|
|
password:
|
|
|
|
|
type: STANDALONE
|
|
|
|
|
enabled: true
|
2019-08-24 00:15:45 +08:00
|
|
|
|
#cas单点登录
|
|
|
|
|
cas:
|
2020-02-24 02:44:53 +08:00
|
|
|
|
prefixUrl: http://cas.example.org:8443/cas
|
2020-11-28 17:20:10 +08:00
|
|
|
|
#Mybatis输出sql日志
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
2022-05-18 16:16:36 +08:00
|
|
|
|
org.jeecg.modules.system.mapper: info
|
2021-02-17 23:04:22 +08:00
|
|
|
|
#swagger
|
|
|
|
|
knife4j:
|
2021-08-13 15:27:30 +08:00
|
|
|
|
#开启增强配置
|
|
|
|
|
enable: true
|
|
|
|
|
#开启生产环境屏蔽
|
2020-11-28 17:20:10 +08:00
|
|
|
|
production: false
|
|
|
|
|
basic:
|
2021-08-13 15:27:30 +08:00
|
|
|
|
enable: false
|
2020-11-28 17:20:10 +08:00
|
|
|
|
username: jeecg
|
|
|
|
|
password: jeecg1314
|
|
|
|
|
#第三方登录
|
|
|
|
|
justauth:
|
|
|
|
|
enabled: true
|
|
|
|
|
type:
|
|
|
|
|
GITHUB:
|
2021-03-17 18:43:42 +08:00
|
|
|
|
client-id: ??
|
|
|
|
|
client-secret: ??
|
2020-11-28 17:20:10 +08:00
|
|
|
|
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/github/callback
|
|
|
|
|
WECHAT_ENTERPRISE:
|
2021-03-17 18:43:42 +08:00
|
|
|
|
client-id: ??
|
|
|
|
|
client-secret: ??
|
2020-11-28 17:20:10 +08:00
|
|
|
|
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_enterprise/callback
|
2021-06-02 15:51:19 +08:00
|
|
|
|
agent-id: ??
|
2020-11-28 17:20:10 +08:00
|
|
|
|
DINGTALK:
|
2021-03-17 18:43:42 +08:00
|
|
|
|
client-id: ??
|
|
|
|
|
client-secret: ??
|
2020-11-28 17:20:10 +08:00
|
|
|
|
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/dingtalk/callback
|
|
|
|
|
WECHAT_OPEN:
|
|
|
|
|
client-id: ??
|
|
|
|
|
client-secret: ??
|
|
|
|
|
redirect-uri: http://sso.test.com:8080/jeecg-boot/sys/thirdLogin/wechat_open/callback
|
|
|
|
|
cache:
|
|
|
|
|
type: default
|
|
|
|
|
prefix: 'demo::'
|
|
|
|
|
timeout: 1h
|
2021-06-02 15:51:19 +08:00
|
|
|
|
#第三方APP对接
|
|
|
|
|
third-app:
|
|
|
|
|
enabled: false
|
|
|
|
|
type:
|
|
|
|
|
#企业微信
|
|
|
|
|
WECHAT_ENTERPRISE:
|
|
|
|
|
enabled: false
|
|
|
|
|
#CORP_ID
|
|
|
|
|
client-id: ??
|
|
|
|
|
#SECRET
|
|
|
|
|
client-secret: ??
|
|
|
|
|
#自建应用id
|
|
|
|
|
agent-id: ??
|
|
|
|
|
#自建应用秘钥(新版企微需要配置)
|
|
|
|
|
# agent-app-secret: ??
|
|
|
|
|
#钉钉
|
|
|
|
|
DINGTALK:
|
|
|
|
|
enabled: false
|
|
|
|
|
# appKey
|
|
|
|
|
client-id: ??
|
|
|
|
|
# appSecret
|
|
|
|
|
client-secret: ??
|
2022-07-20 18:09:53 +08:00
|
|
|
|
agent-id: ??
|