File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
A/src/main/java/com/alibabacloud/mse/demo/a/service
C/src/main/java/com/alibabacloud/mse/demo/c/service
helm/mse-simple-demo/templates Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ public class HelloServiceAImpl implements HelloServiceA {
1717 private HelloServiceB helloServiceB ;
1818
1919 @ Autowired
20- String servcieTag ;
20+ String serviceTag ;
2121
2222 @ Override
2323 public String hello (String name ) {
24- return "A" + servcieTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
24+ return "A" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
2525 helloServiceB .hello (name );
2626 }
2727}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class HelloServiceCImpl implements HelloServiceC {
2727 private String topic ;
2828
2929 @ Autowired
30- String servcieTag ;
30+ String serviceTag ;
3131
3232 @ Value ("${throwException:false}" )
3333 boolean throwException ;
@@ -39,7 +39,7 @@ public String hello(String name) {
3939 throw new RuntimeException ();
4040 }
4141
42- String value = "C" + servcieTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
42+ String value = "C" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
4343 String invokerTag ="" ;
4444 String userData = RpcContext .getContext ().getAttachment ("__microservice_tag__" );
4545 if (!StringUtils .isEmpty (userData )) {
@@ -60,7 +60,7 @@ public String hello(String name) {
6060
6161 @ Override
6262 public String world (String name ) {
63- return "C" + servcieTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "] -> " + name ;
63+ return "C" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "] -> " + name ;
6464 }
6565
6666}
Original file line number Diff line number Diff line change @@ -57,10 +57,12 @@ metadata:
5757spec :
5858 type : ClusterIP
5959 ports :
60- - port : 8848
60+ - name : nacos-server-8848-8848
61+ port : 8848
6162 protocol : TCP
6263 targetPort : 8848
63- - port : 9848
64+ - name : nacos-server-9848-9848
65+ port : 9848
6466 protocol : TCP
6567 targetPort : 9848
6668 selector :
You can’t perform that action at this time.
0 commit comments