Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSON Client side API for spring MVC 3.0

I am looking for a way to setting up a JSON proxy client in a spring framework way.

We are going to use Spring MVC on the server side. We don't like XML as they are overkill and heavy. JSON seem to be a lightweight and effective message container for us.

However, I've search around and read http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/remoting.html many times and I don't find any hits to put my spring client into a JSON client.

They provided RMI, Http, JAX-WS, SOAP and others. But nothing related to as a client of MVC (which I guess it could be common as we don't want to write it twice)

RestTemplate looks good but I am wonder is it the suggested way to do in spring 3.0.

like image 921
Dennis C Avatar asked Nov 21 '25 20:11

Dennis C


1 Answers

The RestTemplate is indeed the preferred way of accessing rest services.

like image 70
Bozho Avatar answered Nov 23 '25 10:11

Bozho



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!