1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

dubbo endpoint

This commit is contained in:
theonefx
2021-01-28 10:08:42 +08:00
parent 4a2f90f13e
commit 8542756d90
6 changed files with 61 additions and 8 deletions

View File

@@ -74,8 +74,9 @@ public class RocketMQConsumerApplication {
while (true) {
mySink.input5().poll(m -> {
String payload = (String) m.getPayload();
if(payload.contains("0")){
throw new IllegalArgumentException("111111111111111111111111111111111111111111");
if (payload.contains("0")) {
throw new IllegalArgumentException(
"111111111111111111111111111111111111111111");
}
System.out.println("pull msg: " + payload);
}, new ParameterizedTypeReference<String>() {