2017-05-06 86 views

回答

0

試着用這個。爲我工作。

private void authenticadorRedeTendencia() { 
     Authenticator.setDefault(new Authenticator() { 
      @Override 
      protected PasswordAuthentication getPasswordAuthentication() { 
       return new PasswordAuthentication(userName(), password.toCharArray()); 
      } 
     }); 
    } 
相關問題