12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- server:
- port: 9090
- spring:
- application:
- name: huimv-registration
- datasource:
- url: jdbc:mysql://122.112.224.199:3306/huimv_registration_center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
- # url: jdbc:mysql://10.0.0.224:3306/huimv_registration_center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
- username: root
- password: hm123456
- type: com.alibaba.druid.pool.DruidDataSource
- #连接池
- druid:
- defaultAutoCommit: false
- defaultReadOnly: false
- #初始化大小
- initialSize: 2
- #最大值
- maxActive: 10
- #最小值
- minIdle: 2
- #配置间隔多久才进行一次检测,检测需要关闭的空闲连接
- timeBetweenEvictionRunsMillis: 18000
- #配置一个连接在池中最小生存的时间
- minEvictableIdleTimeMillis: 600000
- maxEvictableIdleTimeMillis: 1200000
- poolPreparedStatements: true
- maxOpenPreparedStatements: 100
- testOnBorrow: true
- testOnReturn: true
- testWhileIdle: true
- validationQuery: select 1
- removeAbandonedOnBorrow: true
- removeAbandoned: true
- removeAbandonedOnMaintenance: true
- removeAbandonedTimeout: 300
- maxWaitMillis: 3000
- keepalive: true
- phyMaxUseCount: 2000
- #'wall'用于防火墙,SpringBoot中没有log4j,我改成了log4j2
- filters: stat,log4j2,config
- rabbitmq:
- host: 121.36.134.218
- # host: 10.0.0.14
- port: 5672
- username: admin
- password: admin
- #虚拟host 可以不设置,使用server默认host
- virtual-host:
- listener:
- simple:
- acknowledge-mode: none
- #redis
- redis:
- database: 0
- host: 121.36.134.218
- # host: 10.0.0.14
- port: 6379
- password: hm123456
- timeout: 5000ms
- # jedis:
- # pool:
- # max-active: 20
- # max-wait: -1
- # max-idle: 10
- # min-idle: 0
- # lettuce:
- # pool:
- # max-active: 3
- # min-idle: 2
- # max-idle: 3
- # max-wait: 1
- # shutdown-timeout: 100
- # data:
- # redis:
- # repositories:
- # enabled: false
- # #是否缓存空值
- # cache:
- # redis:
- # cache-null-values: false
- mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- # mapper.xml文件所存放的位置
- mapper-locations: classpath*:com/huimv/center/mapper/xml/*.xml # 不加这一行出错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”
- # mapper-locations: classpath:com/huimv/center/mappers/**/*Mapper.xml
|