springBoot配置,贴个图

spring:
    datasource:
        name: test
        url: jdbc:mysql://localhost:3306/epay?characterEncoding=UTF-8
        username: root
        password: 123
        # 使用druid数据源
        type: com.alibaba.druid.pool.DruidDataSource
        driver-class-name: com.mysql.jdbc.Driver
        filters: stat
        maxActive: 20
        initialSize: 1
        maxWait: 60000
        minIdle: 1
        timeBetweenEvictionRunsMillis: 60000
        minEvictableIdleTimeMillis: 300000
        validationQuery: select 'x'
        testWhileIdle: true
        testOnBorrow: false
        testOnReturn: false
        poolPreparedStatements: true
        maxOpenPreparedStatements: 20

mybatis:
    mapperLocations: classpath:mapper/*.xml
    typeAliasesPackage: yxm.zyf.love.model
    
jedis :  
  pool :  
    host : 127.0.0.1  
    port : 6379  
    config :  
      maxTotal: 100  
      maxIdle: 10  
      maxWaitMillis : 100000  

  

 

posted @ 2018-10-09 18:40  宇枫  阅读(257)  评论(0编辑  收藏  举报