Consuming RESTful APIs using Java

后端 未结 2 1768
暗喜
暗喜 2021-01-04 17:49

How would you consume a RESTful API using Java with probably just the standard packages? For ex: Twitter API. I know there are great Java libraries to access it, but how wou

2条回答
  •  悲&欢浪女
    2021-01-04 18:14

    Don't think you should start from scratch, however Spring's RestTemplate is something you can simple use to consume RESTful Services.

    http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/

    Cheers.

提交回复
热议问题