|
@@ -1,5 +1,15 @@
|
|
|
server:
|
|
|
port: 8866
|
|
|
+
|
|
|
+ # 打包时修改该配置 放开ssl证书配置 同时将server.jks文件回滚
|
|
|
+ ssl:
|
|
|
+ enabled: true
|
|
|
+ # SSL 证书路径,classpath 必不可少
|
|
|
+ key-store: classpath:server.jks
|
|
|
+ # SSL 证书密码
|
|
|
+ key-store-password: admin123
|
|
|
+ key-store-type: JKS
|
|
|
+
|
|
|
tomcat:
|
|
|
max-swallow-size: -1
|
|
|
error:
|
|
@@ -37,31 +47,48 @@ spring:
|
|
|
required: true
|
|
|
## quartz定时任务,采用数据库方式
|
|
|
quartz:
|
|
|
+ # 指定Quartz调度器的数据存储方式:RAM:任务数据存储在内存中,适用于单节点环境,JDBC:任务数据存储在关系型数据库中,适用于多节点环境。
|
|
|
+ # job-store-type: memory
|
|
|
job-store-type: jdbc
|
|
|
+ # 指定Quartz调度器在启动时是否需要初始化数据存储库
|
|
|
+ # (embedded:表示Quartz调度器会在启动时使用嵌入式模式初始化数据存储库,即创建必要的表和索引,并将数据存储在内存中)
|
|
|
+ # 如果需要快速、简单地部署Quartz调度器,并且不需要持久化存储数据,则可以选择embedded模式。
|
|
|
initialize-schema: embedded
|
|
|
#定时任务启动开关,true-开 false-关
|
|
|
auto-startup: true
|
|
|
- #延迟1秒启动定时任务
|
|
|
- startup-delay: 1s
|
|
|
- #启动时更新己存在的Job
|
|
|
+ #延迟1秒启动定时任务(改成30秒,为binlog缓存数据留出足够的时间)
|
|
|
+ startup-delay: 30s
|
|
|
+ #用于指定Quartz调度器在添加任务时是否覆盖已经存在的同名任务,此处启动时更新己存在的Job
|
|
|
overwrite-existing-jobs: true
|
|
|
properties:
|
|
|
org:
|
|
|
quartz:
|
|
|
scheduler:
|
|
|
+ # 指定Quartz调度器的实例名称
|
|
|
instanceName: MyScheduler
|
|
|
+ # Quartz调度器会自动为每个实例分配一个唯一的instanceId
|
|
|
instanceId: AUTO
|
|
|
jobStore:
|
|
|
+ # 使用内存存储任务数据,适用于轻量级应用。
|
|
|
+ # class: org.quartz.simpl.RAMJobStore
|
|
|
+ # 使用Spring提供的LocalDataSourceJobStore作为任务存储方式,支持事务管理和集群部署
|
|
|
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
|
|
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
|
|
+ # 指定Quartz调度器的任务存储方式所使用的数据库表前缀
|
|
|
tablePrefix: QRTZ_
|
|
|
+ # 指定Quartz调度器是否为集群模式
|
|
|
isClustered: true
|
|
|
+ # misfireThreshold属性的值表示任务触发器允许的misfire时间,单位为毫秒
|
|
|
misfireThreshold: 12000
|
|
|
+ # 指定Quartz调度器在集群模式下向数据库更新自身状态的时间间隔
|
|
|
clusterCheckinInterval: 15000
|
|
|
threadPool:
|
|
|
class: org.quartz.simpl.SimpleThreadPool
|
|
|
- threadCount: 10
|
|
|
+ # 线程池大小,表示Quartz调度器最多可以同时执行的任务数
|
|
|
+ threadCount: 20
|
|
|
+ # 线程优先级,表示Quartz调度器线程的优先级。
|
|
|
threadPriority: 5
|
|
|
+ # 是否继承初始化线程的上下文类加载器。
|
|
|
threadsInheritContextClassLoaderOfInitializingThread: true
|
|
|
#json 时间戳统一转换
|
|
|
jackson:
|
|
@@ -184,21 +211,20 @@ jeecg:
|
|
|
#webapp文件路径
|
|
|
webapp: /opt/jeecg-boot/webapp
|
|
|
shiro:
|
|
|
- excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo
|
|
|
+ excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/datacoll/webaccess/*,/guan/alarm/list
|
|
|
#阿里云oss存储和大鱼短信秘钥配置
|
|
|
oss:
|
|
|
accessKey: ??
|
|
|
secretKey: ??
|
|
|
endpoint: oss-cn-beijing.aliyuncs.com
|
|
|
bucketName: jeecgdev
|
|
|
- staticDomain: https://static.jeecg.com
|
|
|
- # ElasticSearch 设置
|
|
|
+ # ElasticSearch 6设置
|
|
|
elasticsearch:
|
|
|
cluster-name: jeecg-ES
|
|
|
cluster-nodes: 127.0.0.1:9200
|
|
|
check-enabled: true
|
|
|
# 在线预览文件服务器地址配置
|
|
|
- file-view-domain: http://fileview.jeecg.com
|
|
|
+ file-view-domain: 127.0.0.1:8012
|
|
|
# minio文件上传
|
|
|
minio:
|
|
|
minio_url: http://minio.jeecg.com
|
|
@@ -296,3 +322,10 @@ third-app:
|
|
|
# appSecret
|
|
|
client-secret: ??
|
|
|
agent-id: ??
|
|
|
+# 与数据库binlog连接参数
|
|
|
+binarylog:
|
|
|
+ host: 127.0.0.1
|
|
|
+ port: 3306
|
|
|
+ schema: guan_rl
|
|
|
+ username: root
|
|
|
+ password: 302201
|