application-pool2.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. server:
  2. port: 9090
  3. spring:
  4. application:
  5. name: huimv-registration
  6. datasource:
  7. url: jdbc:mysql://122.112.224.199:3306/huimv_registration_center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  8. # url: jdbc:mysql://10.0.0.224:3306/huimv_registration_center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  9. username: root
  10. password: hm123456
  11. type: com.alibaba.druid.pool.DruidDataSource
  12. #连接池
  13. druid:
  14. defaultAutoCommit: false
  15. defaultReadOnly: false
  16. #初始化大小
  17. initialSize: 2
  18. #最大值
  19. maxActive: 10
  20. #最小值
  21. minIdle: 2
  22. #配置间隔多久才进行一次检测,检测需要关闭的空闲连接
  23. timeBetweenEvictionRunsMillis: 18000
  24. #配置一个连接在池中最小生存的时间
  25. minEvictableIdleTimeMillis: 600000
  26. maxEvictableIdleTimeMillis: 1200000
  27. poolPreparedStatements: true
  28. maxOpenPreparedStatements: 100
  29. testOnBorrow: true
  30. testOnReturn: true
  31. testWhileIdle: true
  32. validationQuery: select 1
  33. removeAbandonedOnBorrow: true
  34. removeAbandoned: true
  35. removeAbandonedOnMaintenance: true
  36. removeAbandonedTimeout: 300
  37. maxWaitMillis: 3000
  38. keepalive: true
  39. phyMaxUseCount: 2000
  40. #'wall'用于防火墙,SpringBoot中没有log4j,我改成了log4j2
  41. filters: stat,log4j2,config
  42. rabbitmq:
  43. host: 121.36.134.218
  44. # host: 10.0.0.14
  45. port: 5672
  46. username: admin
  47. password: admin
  48. #虚拟host 可以不设置,使用server默认host
  49. virtual-host:
  50. listener:
  51. simple:
  52. acknowledge-mode: none
  53. #redis
  54. redis:
  55. database: 0
  56. host: 121.36.134.218
  57. # host: 10.0.0.14
  58. port: 6379
  59. password: hm123456
  60. timeout: 5000ms
  61. # jedis:
  62. # pool:
  63. # max-active: 20
  64. # max-wait: -1
  65. # max-idle: 10
  66. # min-idle: 0
  67. # lettuce:
  68. # pool:
  69. # max-active: 3
  70. # min-idle: 2
  71. # max-idle: 3
  72. # max-wait: 1
  73. # shutdown-timeout: 100
  74. # data:
  75. # redis:
  76. # repositories:
  77. # enabled: false
  78. # #是否缓存空值
  79. # cache:
  80. # redis:
  81. # cache-null-values: false
  82. mybatis-plus:
  83. configuration:
  84. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  85. # mapper.xml文件所存放的位置
  86. mapper-locations: classpath*:com/huimv/center/mapper/xml/*.xml # 不加这一行出错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”
  87. # mapper-locations: classpath:com/huimv/center/mappers/**/*Mapper.xml