Consume REST service using Spring Framework

1

I'm developing a web application, using Spring Framework . And I need to consume a rest service from another application.

I know how to send requests POST , using jquery and ajax , but I want to know if it is possible to do the same, using server-side, for example in controller of my web application. / p>

Is it possible to send POST http requests using spring's controller?

    
asked by anonymous 05.03.2015 / 20:47

1 answer

1

It is possible, yes.

Take a look at the class RestTemplate from Spring.

Here is a step-by-step guide to making a GET using this class:

link

    
06.03.2015 / 20:10