|
@@ -52,15 +52,21 @@ spring:
|
|
enabled: true
|
|
enabled: true
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
rabbitmq:
|
|
rabbitmq:
|
|
- address: 172.18.157.42:5672
|
|
|
|
- connection-timeout: 15000
|
|
|
|
|
|
+ host: 172.18.157.42
|
|
|
|
+ port: 5672
|
|
|
|
+ username: guest
|
|
password: guest
|
|
password: guest
|
|
|
|
+ virtual-host: 4dkankan
|
|
|
|
+ connection-timeout: 0
|
|
|
|
+ listener:
|
|
|
|
+ simple:
|
|
|
|
+ prefetch: 5
|
|
|
|
+ max-concurrency: 10
|
|
|
|
+ acknowledge-mode: manual #开启消费者手动确认
|
|
|
|
+ direct:
|
|
|
|
+ acknowledge-mode: manual #开启消费者手动确认
|
|
|
|
+ #开启消息投递确认机制
|
|
publisher-confirm-type: correlated
|
|
publisher-confirm-type: correlated
|
|
- publisher-returns: true
|
|
|
|
- template:
|
|
|
|
- mandatory: true
|
|
|
|
- username: guest
|
|
|
|
- virtual-host: /
|
|
|
|
redis:
|
|
redis:
|
|
database: 0
|
|
database: 0
|
|
host: r-wz9owsphxqwi4ztqlf.redis.rds.aliyuncs.com
|
|
host: r-wz9owsphxqwi4ztqlf.redis.rds.aliyuncs.com
|