Skip to content

Commit 426efa8

Browse files
王俊杰王俊杰
authored andcommitted
update code
1 parent 5264027 commit 426efa8

File tree

59 files changed

+787
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+787
-71
lines changed
1.78 KB
Binary file not shown.
Binary file not shown.

com.wang.code.App$Person.class

701 Bytes
Binary file not shown.

dubboConsumer/src/main/java/com/wang/Test.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

dubboConsumer/src/main/java/com/wang/service/AnnotationAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@Component("annotationAction")
1515
public class AnnotationAction {
1616

17-
@Reference(cluster = "random")
17+
@Reference(cluster = "random", validation = "true")
1818
AnnotationService annotationService;
1919

2020
public String doSayHello(){
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.wang.spiTest;
2+
3+
public class Bumblebee implements Robot {
4+
@Override
5+
public void sayHello() {
6+
System.out.println("Hello, I am Bumblebee.");
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.wang.spiTest;
2+
3+
public class OptimusPrime implements Robot{
4+
@Override
5+
public void sayHello() {
6+
System.out.println("Hello, I am Optimus Prime.");
7+
}
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.wang.spiTest;
2+
3+
public interface Robot {
4+
void sayHello();
5+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
com.wang.spiTest.OptimusPrime
2+
com.wang.spiTest.Bumblebee
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
com.wang.spiTest.OptimusPrime
2+
com.wang.spiTest.Bumblebee

0 commit comments

Comments
 (0)