类之间解耦

This commit is contained in:
2018-10-11 09:03:11 +08:00
parent 54d19c30cd
commit 933b9db6fb
6 changed files with 7 additions and 8 deletions

View File

@@ -13,6 +13,6 @@ import top.fjy8018.consumer.common.MySink;
public class Consumer {
@StreamListener(MySink.INPUT)
public void receive(Message<String> message) {
System.out.println("接收到MQ消息:" + message);
System.out.println("接收到MQ消息:" + message.getPayload());
}
}

View File

@@ -1,6 +1,6 @@
spring:
rabbitmq:
host: docker-1.fjy8018.cn
host: 192.168.163.128
username: cms
password: cms-mq-admin
cloud: