lifang 1 月之前
父节点
当前提交
b72c75a09d
共有 1 个文件被更改,包括 44 次插入7 次删除
  1. 44 7
      nb-admin/src/main/resources/application-dev.yml

+ 44 - 7
nb-admin/src/main/resources/application-dev.yml

@@ -53,11 +53,11 @@ spring:
       testWhileIdle: true
       testOnBorrow: false
       testOnReturn: false
-        # 通过别名的方式配置扩展插件,多个英文逗号分隔,常用的插件有:
-        # 监控统计用的filter:stat
-        # 日志用的filter:log4j2
+      # 通过别名的方式配置扩展插件,多个英文逗号分隔,常用的插件有:
+      # 监控统计用的filter:stat
+      # 日志用的filter:log4j2
       # 防御sql注入的filter:wall
-      filters: stat,wall,lo4j2 #log4j
+      filters: log4j2
       webStatFilter:
         enabled: true
       statViewServlet:
@@ -66,18 +66,55 @@ spring:
         allow:
         url-pattern: /druid/*
         # 控制台管理用户名和密码
-        login-username: tuoren
-        login-password: Tuoren123.
+        login-username: admin
+        login-password: admin
       filter:
         stat:
           enabled: true
           # 慢SQL记录
           log-slow-sql: true
-          slow-sql-millis: 1000
+          slow-sql-millis: 10000
           merge-sql: true
         wall:
           config:
             multi-statement-allow: true
+  quartz:
+    job-store-type: jdbc
+    jdbc:
+      initialize-schema: never
+    properties:
+      org:
+        quartz:
+          scheduler:
+            instanceName: NbDevScheduler
+            instanceId: AUTO
+          jobStore:
+            class: org.quartz.impl.jdbcjobstore.JobStoreTX
+            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
+            tablePrefix: QRTZ_
+            isClustered: true
+            clusterCheckinInterval: 10000
+            useProperties: false
+            dataSource: myDS
+          threadPool:
+            class: org.quartz.simpl.SimpleThreadPool
+            threadCount: 10
+            threadPriority: 5
+            threadsInheritContextClassLoaderOfInitializingThread: true
+          dataSource:
+            myDS:
+              provider: hikaricp
+              driver: com.mysql.cj.jdbc.Driver
+              URL: jdbc:mysql://192.168.100.32:3306/nbnetpump?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true
+              user: root
+              password: 123456
+              validationQuery: SELECT 1
+  rabbitmq:
+    host: 192.168.100.32
+    port: 5672
+    username: guest
+    password: guest
+    virtual-host: /
   # redis 配置
   redis:
     # 地址