java.rmi.ConnectException: Connection refused to host: 127.0.1.1;

前端 未结 14 2648
攒了一身酷
攒了一身酷 2020-11-27 15:08
    java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
    java.net.ConnectException: Connection refused
    at sun.rmi.transport         


        
14条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 15:30

    you can use LocalRegistry such as:

    Registry rgsty = LocateRegistry.createRegistry(1888);
    rgsty.rebind("hello", hello);
    

提交回复
热议问题