|
@@ -0,0 +1,111 @@
|
|
|
+spring:
|
|
|
+ application:
|
|
|
+ name: szwl-server
|
|
|
+ cloud:
|
|
|
+ config:
|
|
|
+ name: szwl-server
|
|
|
+ discovery:
|
|
|
+ service-id: config-server
|
|
|
+ # 是否获取配置中心配置
|
|
|
+ enabled: true
|
|
|
+ datasource:
|
|
|
+ url: jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/szwl
|
|
|
+ username: root
|
|
|
+ password: sunzee@020
|
|
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
+# stream:
|
|
|
+# # 如果你项目里只对接一个中间件,那么不用定义binders
|
|
|
+# # 当系统要定义多个不同消息中间件的时候,使用binders定义
|
|
|
+# binders:
|
|
|
+# my-rabbit:
|
|
|
+# type: rabbit
|
|
|
+# environment:
|
|
|
+# spring:
|
|
|
+# rabbitmq:
|
|
|
+# addresses: 112.74.63.148:5672,120.78.140.173:5672,47.112.127.131:5672
|
|
|
+# username: zwlzwlzwl
|
|
|
+# password: 123456
|
|
|
+# virtual-host: /
|
|
|
+# publisher-confirms: true
|
|
|
+# connection-timeout: 5s
|
|
|
+# mandatory: true
|
|
|
+# template.mandatory: true
|
|
|
+# publisher-returns: true
|
|
|
+# cache.channel.size: 1000
|
|
|
+# concurrency: 500
|
|
|
+# max-concurrency: 2000
|
|
|
+# listener.simple.concurrency: 1000
|
|
|
+# listener.simple.max-concurrency: 2000
|
|
|
+#spring:
|
|
|
+ rabbitmq:
|
|
|
+ addresses: 112.74.63.148:5672,120.78.140.173:5672,47.112.127.131:5672
|
|
|
+ username: zwlzwlzwl
|
|
|
+ password: 123456
|
|
|
+ virtual-host: /
|
|
|
+# publisher-confirms: true
|
|
|
+ connection-timeout: 5s
|
|
|
+ mandatory: true
|
|
|
+ template.mandatory: true
|
|
|
+ publisher-returns: true
|
|
|
+ cache.channel.size: 1000
|
|
|
+ concurrency: 500
|
|
|
+ max-concurrency: 2000
|
|
|
+ listener.simple.concurrency: 1000
|
|
|
+ listener.simple.max-concurrency: 2000
|
|
|
+
|
|
|
+# redis:
|
|
|
+# database: 0
|
|
|
+# host: localhost # Redis服务器地址
|
|
|
+# port: 6379 # Redis服务器连接端口
|
|
|
+# password: # Redis服务器连接密码(默认为空)
|
|
|
+ redis:
|
|
|
+ cluster:
|
|
|
+ # 连接超时时间(毫秒)
|
|
|
+ timeout: 50000
|
|
|
+ #设置命令的执行时间,如果超过这个时间,则报错
|
|
|
+ commandTimeout: 50000
|
|
|
+ #集群配置
|
|
|
+ nodes: 10.0.0.153:7000,10.0.0.153:7001,10.0.0.152:7001,10.0.0.152:7000,10.0.0.155:7001,10.0.0.155:7000
|
|
|
+# nodes: 47.112.127.131:7000,47.112.127.131:7001,112.74.63.148:7001,112.74.63.148:7000,120.78.140.173:7001,120.78.140.173:7000
|
|
|
+ pool:
|
|
|
+ # 连接池最大连接数(使用负值表示没有限制)
|
|
|
+ max-active: 5000
|
|
|
+ # 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
|
+ max-wait: 2000
|
|
|
+ # 连接池中的最大空闲连接
|
|
|
+ max-idle: 500
|
|
|
+ # 连接池中的最小空闲连接
|
|
|
+ min-idle: 5
|
|
|
+
|
|
|
+elasticSearch:
|
|
|
+ host: 120.78.140.173
|
|
|
+#elasticSearch.host: 10.0.0.155
|
|
|
+ port: 9200
|
|
|
+ client.connectNum: 1000
|
|
|
+ connectPerRoute: 50
|
|
|
+ client.esUserName: elastic
|
|
|
+ client.esPassword: sunzee@020
|
|
|
+server:
|
|
|
+ port: 49011
|
|
|
+
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ web:
|
|
|
+ exposure:
|
|
|
+ include: refresh
|
|
|
+eureka:
|
|
|
+ client:
|
|
|
+ service-url:
|
|
|
+ defaultZone: http://112.74.63.148:49001/eureka/
|
|
|
+ register-with-eureka: true
|
|
|
+ instance:
|
|
|
+ prefer-ip-address: true
|
|
|
+# ip-address: 10.241.20.241
|
|
|
+
|
|
|
+mybatis-plus:
|
|
|
+ mapper-locations: classpath:com/szwl/mapper/xml/*.xml
|
|
|
+
|
|
|
+logging:
|
|
|
+ level:
|
|
|
+ com.szwl: debug
|
|
|
+
|