Skip to content

Commit 8c56d60

Browse files
Modify dubbo method names for different interfaces for authentication (#156)
* feature:加入各种注释 * feature:加入SpringCloudGatewy、B服务和C服务增加2个dubbo注册接口、升级版本为3.0.1 * feature:修改helm版本 * feature:将B服务和C服务中的dubbo不同接口的方法名改成不同
1 parent 6137439 commit 8c56d60

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.alibabacloud.mse.demo.b.service;
22

33
public interface HelloServiceBTwo {
4-
String hello(String name);
4+
String hello2(String name);
55
String slow();
66
String exception();
77
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.alibabacloud.mse.demo.b.service;
22

33
public interface HelloServiceBTwo {
4-
String hello(String name);
4+
String hello2(String name);
55
String slow();
66
String exception();
77
}

mse-simple-demo/B/src/main/java/com/alibabacloud/mse/demo/b/service/HelloServiceBTwoImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public class HelloServiceBTwoImpl implements HelloServiceBTwo {
2626
private static final Random RANDOM = new Random();
2727

2828
@Override
29-
public String hello(String name) {
29+
public String hello2(String name) {
3030
return "B" + serviceTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]" + " params:" + name + " -> " +
31-
helloServiceCTwo.hello(name);
31+
helloServiceCTwo.hello2(name);
3232
}
3333

3434
@Override
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.alibabacloud.mse.demo.c.service;
22

33
public interface HelloServiceCTwo {
4-
String hello(String name);
5-
String world(String name);
4+
String hello2(String name);
5+
String world2(String name);
66
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.alibabacloud.mse.demo.c.service;
22

33
public interface HelloServiceCTwo {
4-
String hello(String name);
5-
String world(String name);
4+
String hello2(String name);
5+
String world2(String name);
66
}

mse-simple-demo/C/src/main/java/com/alibabacloud/mse/demo/c/service/HelloServiceCTwoImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class HelloServiceCTwoImpl implements HelloServiceCTwo {
3333
boolean throwException;
3434

3535
@Override
36-
public String hello(String name) {
36+
public String hello2(String name) {
3737

3838
if (throwException) {
3939
throw new RuntimeException();
@@ -59,7 +59,7 @@ public String hello(String name) {
5959
}
6060

6161
@Override
62-
public String world(String name) {
62+
public String world2(String name) {
6363
return "C" + serviceTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "] -> " + name;
6464
}
6565

0 commit comments

Comments
 (0)