Pu Zhibing
5 天以前 54f37d699edc716ae0608e506f692de3b7114086
修改配置文件
1个文件已修改
1个文件已删除
195 ■■■■ 已修改文件
guns-admin/src/main/resources/application.yml 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns-admin/src/test/java/com/stylefeng/guns/HLGTest.java 105 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
guns-admin/src/main/resources/application.yml
@@ -49,22 +49,22 @@
---
#spring:
#  datasource:
#    url: jdbc:mysql://127.0.0.1:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
#    username: root
#    password: 123456
#    db-name: vehicle_inspection #用来搜集数据库的所有表
#    filters: wall,mergeStat
#线上环境
spring:
  datasource:
    url: jdbc:mysql://192.168.110.85:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    url: jdbc:mysql://127.0.0.1:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    password: 123456
    driver-class-name: com.mysql.cj.jdbc.Driver
    db-name: guns #用来搜集数据库的所有表
    db-name: vehicle_inspection #用来搜集数据库的所有表
    filters: wall,mergeStat
#线上环境
#spring:
#  datasource:
#    url: jdbc:mysql://192.168.110.85:3306/vehicle_inspection?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai
#    username: root
#    password: 123456
#    driver-class-name: com.mysql.cj.jdbc.Driver
#    db-name: guns #用来搜集数据库的所有表
#    filters: wall,mergeStat
@@ -80,38 +80,38 @@
#      - dataSourceBiz
---
#spring:
#  quartz:
#    job-store-type: jdbc
#    jdbc:
#      initialize-schema: embedded
#    properties:
#      org:
#        quartz:
#          scheduler:
#            # 调度器实例名称
#            instanceName: QuartzScheduler
#            # 分布式节点ID自动生成
#            instanceId: AUTO
#          jobStore:
#            class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
#            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
#            # 表前缀
#            tablePrefix: qrtz_
#            # 是否开启集群
#            isClustered: false
#            # 数据源别名(自定义)
#            dataSource: vehicle_inspection
#            # 分布式节点有效性检查时间间隔(毫秒)
#            clusterCheckinInterval: 10000
#            useProperties: false
#          # 线程池配置
#          threadPool:
#            class: org.quartz.simpl.SimpleThreadPool
#            threadCount: 10
#            threadPriority: 5
#            threadsInheritContextClassLoaderOfInitializingThread: true
#
spring:
  quartz:
    job-store-type: jdbc
    jdbc:
      initialize-schema: embedded
    properties:
      org:
        quartz:
          scheduler:
            # 调度器实例名称
            instanceName: QuartzScheduler
            # 分布式节点ID自动生成
            instanceId: AUTO
          jobStore:
            class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
            # 表前缀
            tablePrefix: qrtz_
            # 是否开启集群
            isClustered: false
            # 数据源别名(自定义)
            dataSource: vehicle_inspection
            # 分布式节点有效性检查时间间隔(毫秒)
            clusterCheckinInterval: 10000
            useProperties: false
          # 线程池配置
          threadPool:
            class: org.quartz.simpl.SimpleThreadPool
            threadCount: 10
            threadPriority: 5
            threadsInheritContextClassLoaderOfInitializingThread: true
---
# 任务执行最大线程数
maxThreadCount: 50
maxThreadCount: 20
guns-admin/src/test/java/com/stylefeng/guns/HLGTest.java
File was deleted