fix
This commit is contained in:
parent
e3985168bf
commit
70f076867c
@ -20,8 +20,8 @@ public class ProviderTest {
|
|||||||
|
|
||||||
public static void main(String[] args) throws InterruptedException {
|
public static void main(String[] args) throws InterruptedException {
|
||||||
KRpcApplication.initialize();
|
KRpcApplication.initialize();
|
||||||
String ip = System.getProperty("ip");
|
String ip=KRpcApplication.getRpcConfig().getHost();
|
||||||
int port = Integer.parseInt(System.getProperty("port"));
|
int port=KRpcApplication.getRpcConfig().getPort();
|
||||||
// 创建 UserService 实例
|
// 创建 UserService 实例
|
||||||
UserService userService = new UserServiceImpl();
|
UserService userService = new UserServiceImpl();
|
||||||
ServiceProvider serviceProvider = new ServiceProvider(ip, port);
|
ServiceProvider serviceProvider = new ServiceProvider(ip, port);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user