Commit fd833b8f239db73d9203f37e5a9c39291ba861da
1 parent
2ffa2eec
调整mq配置
Showing
1 changed file
with
7 additions
and
9 deletions
user-service.yml
| @@ -34,16 +34,14 @@ spring: | @@ -34,16 +34,14 @@ spring: | ||
| 34 | sentinel: | 34 | sentinel: |
| 35 | master: mymaster1 | 35 | master: mymaster1 |
| 36 | nodes: redis-server:16379,redis-server:16379 | 36 | nodes: redis-server:16379,redis-server:16379 |
| 37 | - jms: | ||
| 38 | - brokerUrl: tcp://mqserver:61616 | ||
| 39 | - consumer: | ||
| 40 | - concurrentConsumers: 5 | ||
| 41 | - maxConcurrentConsumers: 10 | 37 | + activemq: |
| 38 | + broker-url: tcp://127.0.0.1:61616 | ||
| 39 | + in-memory: false | ||
| 42 | pool: | 40 | pool: |
| 43 | - maxConnections: 10 | ||
| 44 | - maximumActiveSessionPerConnection: 100 | ||
| 45 | - idleTimeout: 60000 | ||
| 46 | - createConnectionOnStartup: false | 41 | + enabled: true |
| 42 | + max-connections: 5 | ||
| 43 | + idle-timeout: 30000 | ||
| 44 | + expiry-timeout: 0 | ||
| 47 | 45 | ||
| 48 | mybatis: | 46 | mybatis: |
| 49 | mapperLocations: classpath:/mybatis/*.xml | 47 | mapperLocations: classpath:/mybatis/*.xml |