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

CodePudding user response:

t refer to the original poster orange circle response:
Java background call restful interface need password, with what tools can be password is handed in,,, thank you thank you


Recommend using soapui, CSDN search can download,
Postman to also go

CodePudding user response:

General should be RESTful HTTP interface, your HTTP client class has set the account password, set to go

CodePudding user response:

This generally see the restful interface defines the refs, usually can be added to the header or the appkey and secret key string

CodePudding user response:

Postman intuitive some

CodePudding user response:

postman

CodePudding user response:

Find a database inside token, inside the header
  • Related