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 {
17
17
private HelloServiceB helloServiceB ;
18
18
19
19
@ Autowired
20
- String servcieTag ;
20
+ String serviceTag ;
21
21
22
22
@ Override
23
23
public String hello (String name ) {
24
- return "A" + servcieTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
24
+ return "A" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
25
25
helloServiceB .hello (name );
26
26
}
27
27
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class HelloServiceCImpl implements HelloServiceC {
27
27
private String topic ;
28
28
29
29
@ Autowired
30
- String servcieTag ;
30
+ String serviceTag ;
31
31
32
32
@ Value ("${throwException:false}" )
33
33
boolean throwException ;
@@ -39,7 +39,7 @@ public String hello(String name) {
39
39
throw new RuntimeException ();
40
40
}
41
41
42
- String value = "C" + servcieTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
42
+ String value = "C" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
43
43
String invokerTag ="" ;
44
44
String userData = RpcContext .getContext ().getAttachment ("__microservice_tag__" );
45
45
if (!StringUtils .isEmpty (userData )) {
@@ -60,7 +60,7 @@ public String hello(String name) {
60
60
61
61
@ Override
62
62
public String world (String name ) {
63
- return "C" + servcieTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "] -> " + name ;
63
+ return "C" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "] -> " + name ;
64
64
}
65
65
66
66
}
Original file line number Diff line number Diff line change @@ -57,10 +57,12 @@ metadata:
57
57
spec :
58
58
type : ClusterIP
59
59
ports :
60
- - port : 8848
60
+ - name : nacos-server-8848-8848
61
+ port : 8848
61
62
protocol : TCP
62
63
targetPort : 8848
63
- - port : 9848
64
+ - name : nacos-server-9848-9848
65
+ port : 9848
64
66
protocol : TCP
65
67
targetPort : 9848
66
68
selector :
You can’t perform that action at this time.
0 commit comments