| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- hostname: 172.16.0.2 #地址
- spring:
- boot:
- admin:
- client:
- url: "http://${hostname}:9610"
- password: password
- username: user
- instance:
- prefer-ip: true
- redis:
- database: 0 #Redis数据库索引(默认为0)
- timeout: 5000ms # 连接超时时间(毫秒)
- host: ${hostname}
- port: 6679
- password: 123456 # Redis服务器连接密码(默认为空)
- jedis:
- pool:
- max-active: 8 # 连接池中的最大连接
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 8 # 连接池中的最大空闲连接
- min-idle: 0 # 连接池中的最小空闲连接
- servlet:
- multipart:
- #单个文件上传大小
- max-file-size: 10MB
- #总数上传大小
- max-request-size: 100MB
- application:
- name: csc-szls-message #服务名
- # mysql配置
- datasource:
- driver-class-name: com.mysql.cj.jdbc.Driver
- username: root
- password: 1qaz@WSX
- url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
- quartz:
- job-store-type: jdbc #数据库方式
- jdbc:
- initialize-schema: never #不初始化表结构
- properties:
- org:
- quartz:
- scheduler:
- instanceId: AUTO #默认主机名和时间戳生成实例ID,可以是任何字符串,但对于所有调度程序来说,必须是唯一的 对应qrtz_scheduler_state INSTANCE_NAME字段
- #instanceName: clusteredScheduler #quartzScheduler
- jobStore:
- class: org.quartz.impl.jdbcjobstore.JobStoreTX #持久化配置
- driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate #我们仅为数据库制作了特定于数据库的代理
- useProperties: false #以指示JDBCJobStore将JobDataMaps中的所有值都作为字符串,因此可以作为名称 - 值对存储而不是在BLOB列中以其序列化形式存储更多复杂的对象。从长远来看,这是更安全的,因为您避免了将非String类序列化为BLOB的类版本问题。
- tablePrefix: qrtz_ #数据库表前缀
- misfireThreshold: 60000 #在被认为“失火”之前,调度程序将“容忍”一个Triggers将其下一个启动时间通过的毫秒数。默认值(如果您在配置中未输入此属性)为60000(60秒)。
- clusterCheckinInterval: 5000 #设置此实例“检入”*与群集的其他实例的频率(以毫秒为单位)。影响检测失败实例的速度。
- isClustered: true #打开群集功能
- threadPool: #连接池
- class: org.quartz.simpl.SimpleThreadPool
- threadCount: 10
- threadPriority: 5
- threadsInheritContextClassLoaderOfInitializingThread: true
- # 配置rabbitmq的地址以及用户密码
- rabbitmq:
- host: ${hostname}
- port: 5672
- username: admin
- password: admin
- mybatis:
- mapper-locations: classpath:/mapper/*Mapper.xml
- # 配置mybatis-plus
- mybatis-plus:
- # 配置扫描xml
- mapper-locations: classpath:/mapper/*Mapper.xml
- # 实体扫描,多个package用逗号或者分号分隔
- type-aliases-package: com.unissoft.model
- ribbon:
- ReadTimeout: 10000
- ConnectTimeout: 10000
- MaxAutoRetries: 1
- MaxAutoRetriesNextServer: 2
- #熔断器开启
- feign:
- hystrix:
- enabled: true
- # 暴露监控端点http://localhost:9603/actuator/refresh 手动刷新
- management:
- endpoints:
- web:
- exposure:
- include: '*'
- # 2.0开始,actuator默认不开放,所以要设置为开发
- endpoint:
- health:
- show-details: ALWAYS
- my-config:
- isUseSecurity: true #是否使用security权限
- projectCode: csc-szls-message #项目编码
- clientId: client_csc_szls_system_manage #客户端id
- logging:
- level:
- com.unissoft.mapper: DEBUG #包路径为mapper文件包路径
- minio:
- endpoint: http://${hostname}:9998 #图片服务器访问地址
- accesskey: minioAdmin #账号
- secretkey: minioAdmin1 #密码
|