-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c789b5
commit acf5706
Showing
6 changed files
with
29 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
package service.call; | ||
|
||
|
||
import exception.RpcException; | ||
import method.Customer; | ||
import service.bootstrap.ClientBootStrap; | ||
|
||
import java.io.IOException; | ||
|
||
//通用启动类 将启动的逻辑藏在ClientBootStrap中 | ||
public class ClientCall { | ||
public static void main(String[] args) throws IOException { | ||
ClientBootStrap.start(); | ||
public static void main(String[] args) throws IOException, RpcException { | ||
Customer customer = ClientBootStrap.start(); | ||
//实现调用 | ||
System.out.println(customer.Hello("success")); | ||
System.out.println(customer.Bye("fail")); | ||
System.out.println(customer.Hello("fail")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.