2015 - 10 - 06 SpringBoot入門:外部のサービスに接続 Spring Boot 概要 Spring Boot アプリから、外部のサービスに接続する方法を書きます。サービス http://gturnquist-quoters.cfapps.io/api/random のレスポンス( JSON )を取得するアプリを作成します。 1. レスポンス( JSON )の内容 内容は次のようなものです。 { type: "success", value: { id: 10, quote: "Really loving Spring Boot, makes stand alone Spring apps easy." } } 前提 記事のサンプルコードを実行する場合は、次のアプリを作成しておく必要があります。実行しない場合は、アプリを作成しなくても大丈夫です。 はじめのアプリ"Hel
![SpringBoot入門:外部のサービスに接続 - Java と Web開発](https://cdn-ak-scissors.b.st-hatena.com/image/square/7883681bc5915eababc1818b5b4cf07d1ec4b48c/height=288;version=1;width=512/http%3A%2F%2Fcdn.image.st-hatena.com%2Fimage%2Fscale%2F5abb86e9818ef6366314540e709efa519dfed6e9%2Fbackend%3Dimager%3Benlarge%3D0%3Bheight%3D1000%3Bversion%3D1%3Bwidth%3D1200%2Fhttp%253A%252F%252Fcdn.mogile.archive.st-hatena.com%252Fv1%252Fimage%252Fmamoru2110%252F302447107627714975.png)