Home > Back-end > Java back-end call restful this interface need password to do...
Java back-end call restful this interface need password to do...
Time:09-17
Java back-end call restful interface need password, with what tools can be password is handed in,,, thank you thank you
CodePudding user response:
Great god I was too difficult
CodePudding user response:
This depends on the authentication restful interface used to If the HttpBearerAuth authentication way: //usernames and passwords can be stored in the head HttpHeaders headers=new HttpHeaders (); Headers. The add (" Authorization ", "Basic" + "user name: password");//"user name: password" after joining together into this format, base64, pay attention to the need to have a space after Basic