CRM项目后端配置项使用YAML和Properties------CRM项目

本文详细描述了SpringBoot应用中对Redis(包括Jedis和Lettuce)的配置,如连接池参数、集群节点、密码等,以及MySQL数据源的配置,同时涉及MyBatis的mapper文件位置和服务器端口设置,以及项目任务的定时调度。
摘要由CSDN通过智能技术生成
---
spring:
  data:
    redis:
      lettuce:
        pool:
          max-idle: 8
          min-idle: 0
          max-wait: -1ms
          max-active: 8
        cluster:
          refresh:
            adaptive: true
            period: 2000
      cluster:
        max-redirects: 3
        nodes: 192.168.127.128:6381,192.168.127.128:6382,192.168.127.131:6383,192.168.127.131:6384,192.168.127.129:6385,192.168.127.129:6386
      password: abc123
      timeout: 5000
---
server:
  port: 8089
  servlet:
    context-path: /
    session:
      persistent: false
---
spring:
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/crm_system?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: abc123
    hikari:
      maximum-pool-size: 30
      minimum-idle: 30
      connection-timeout: 5000
      idle-timeout: 0
      max-lifetime: 18000000
#  设置jackson返回json数据时的时区格式
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
---
mybatis:
  mapper-locations: classpath:mapper/*.xml
#  configuration:
#    控制台打印SQL语句
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
---
#定义任务调度时间
project:
  task:
    cron: '* */60 * * * *'
    delay: 3600000

---
spring:
  data:
    redis:
      lettuce:
        pool:
          max-idle: 8
          min-idle: 0
          max-wait: -1ms
          max-active: 8
        cluster:
          refresh:
            adaptive: true
            period: 2000
      cluster:
        max-redirects: 3
        nodes: 192.168.127.128:6381,192.168.127.128:6382,192.168.127.131:6383,192.168.127.131:6384,192.168.127.129:6385,192.168.127.129:6386
      password: abc123
      timeout: 5000
---
server:
  port: 8089
  servlet:
    context-path: /
    session:
      persistent: false
---
spring:
  datasource:
    url: jdbc:mysql://127.0.0.1:3306/crm_system?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: abc123
    hikari:
      maximum-pool-size: 30
      minimum-idle: 30
      connection-timeout: 5000
      idle-timeout: 0
      max-lifetime: 18000000
#  设置jackson返回json数据时的时区格式
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
---
mybatis:
  mapper-locations: classpath:mapper/*.xml
#  configuration:
#    控制台打印SQL语句
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
---
#定义任务调度时间
project:
  task:
    cron: '* */60 * * * *'
    delay: 3600000

spring.data.redis.jedis.pool.max-active=8
spring.data.redis.jedis.pool.min-idle=0
spring.data.redis.jedis.pool.max-wait: -1ms
spring.data.redis.jedis.pool.max-idle: 8
spring.data.redis.cluster.nodes=192.168.127.128:6381,192.168.127.128:6382,192.168.127.131:6383,192.168.127.131:6384,192.168.127.129:6385,192.168.127.129:6386
spring.data.redis.lettuce.pool.min-idle=0
spring.data.redis.lettuce.cluster.refresh.adaptive=true
spring.data.redis.lettuce.cluster.refresh.period=2000
spring.data.redis.cluster.max-redirects=3
spring.data.redis.password=abc123
spring.data.redis.timeout=5000
server.address=8089
server.servlet.context-path=/
server.servlet.session.persistent=false
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/crm_system?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
spring.datasource.username=root
spring.datasource.password=abc123
spring.datasource.hikari.maximum-pool-size=30
spring.datasource.hikari.minimum-idle=30
spring.datasource.hikari.connection-timeout=5000
spring.datasource.hikari.idle-timeout=0
spring.datasource.hikari.max-lifetime=18000000
spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
mybatis.mapper-locations=classpath:mapper/*.xml
project.task.cron='* */60 * * * *'
project.task.delay=3600000

spring.data.redis.jedis.pool.max-active=8
spring.data.redis.jedis.pool.min-idle=0
spring.data.redis.jedis.pool.max-wait: -1ms
spring.data.redis.jedis.pool.max-idle: 8
spring.data.redis.cluster.nodes=192.168.127.128:6381,192.168.127.128:6382,192.168.127.131:6383,192.168.127.131:6384,192.168.127.129:6385,192.168.127.129:6386
spring.data.redis.lettuce.pool.min-idle=0
spring.data.redis.lettuce.cluster.refresh.adaptive=true
spring.data.redis.lettuce.cluster.refresh.period=2000
spring.data.redis.cluster.max-redirects=3
spring.data.redis.password=abc123
spring.data.redis.timeout=5000
server.address=8089
server.servlet.context-path=/
server.servlet.session.persistent=false
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/crm_system?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
spring.datasource.username=root
spring.datasource.password=abc123
spring.datasource.hikari.maximum-pool-size=30
spring.datasource.hikari.minimum-idle=30
spring.datasource.hikari.connection-timeout=5000
spring.datasource.hikari.idle-timeout=0
spring.datasource.hikari.max-lifetime=18000000
spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
mybatis.mapper-locations=classpath:mapper/*.xml
project.task.cron='* */60 * * * *'
project.task.delay=3600000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值