application-pool1.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. server:
  2. port: 9090
  3. spring:
  4. application:
  5. name: huimv-registration
  6. datasource:
  7. url: jdbc:mysql://192.168.1.7:3306/huimv_registration_center?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  8. username: root
  9. password: hm123456
  10. # driver-class-name: com.mysql.cj.jdbc.Driver
  11. type: com.alibaba.druid.pool.DruidDataSource
  12. #连接池
  13. druid:
  14. defaultAutoCommit: false
  15. defaultReadOnly: false
  16. #初始化大小
  17. initialSize: 2
  18. #最大值
  19. maxActive: 5
  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. # jpa:
  43. # show-sql: true
  44. # database: mysql
  45. # hibernate:
  46. # ddl-auto: update
  47. # database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  48. # open-in-view: true
  49. #配置rabbitMq 服务器
  50. # rabbitmq:
  51. # host: 10.0.0.4
  52. # port: 5672
  53. # username: huimv
  54. # password: hm123456
  55. # #虚拟host 可以不设置,使用server默认host
  56. # virtual-host: /
  57. #redis
  58. # redis:
  59. # database: 0
  60. # host: 192.168.1.68
  61. # port: 6379
  62. # password: hm123456
  63. # timeout: 5000ms
  64. # jedis:
  65. # pool:
  66. # max-active: 20
  67. # max-wait: -1
  68. # max-idle: 10
  69. # min-idle: 0
  70. # lettuce:
  71. # pool:
  72. # max-active: 3
  73. # min-idle: 2
  74. # max-idle: 3
  75. # max-wait: 1
  76. # shutdown-timeout: 100
  77. # data:
  78. # redis:
  79. # repositories:
  80. # enabled: false
  81. #是否缓存空值
  82. # cache:
  83. # redis:
  84. # cache-null-values: false
  85. #server:
  86. # port: 9110
  87. #spring:
  88. # application:
  89. # name: huimv-hy-autoGetData
  90. #
  91. # datasource:
  92. ## url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  93. # # url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  94. # url: jdbc:mysql://192.168.1.7:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  95. # username: root
  96. # password: hm123456
  97. # driver-class-name: com.mysql.cj.jdbc.Driver
  98. # jpa:
  99. # properties:
  100. # hibernate:
  101. # enable_lazy_load_no_trans: true
  102. # show-sql: true
  103. # database: mysql
  104. # hibernate:
  105. # ddl-auto: update
  106. # database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  107. # open-in-view: true
  108. rabbitmq:
  109. host: 121.36.134.218
  110. port: 5672
  111. username: admin
  112. password: admin
  113. #虚拟host 可以不设置,使用server默认host
  114. virtual-host: /registration_center
  115. listener:
  116. simple:
  117. acknowledge-mode: none
  118. #redis
  119. redis:
  120. database: 0
  121. host: 121.36.134.218
  122. port: 6379
  123. password: hm123456
  124. timeout: 5000ms
  125. jedis:
  126. pool:
  127. max-active: 20
  128. max-wait: -1
  129. max-idle: 10
  130. min-idle: 0
  131. mybatis-plus:
  132. configuration:
  133. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  134. # mapper.xml文件所存放的位置
  135. mapper-locations: classpath*:com/huimv/center/mapper/xml/*.xml # 不加这一行出错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”
  136. # mapper-locations: classpath:com/huimv/center/mappers/**/*Mapper.xml