2014-12-10から1日間の記事一覧
今回は、リクエストパラメータを任意のオブジェクトで受け取ります。最初にデータを受け取るクラスを作成します。フィールド名は受け取るパラメータ名と同じにしておきます。 package com.example.spring.controller.c010; public class C010Model { private…
今回はSpringで用意されているHttpEntityクラスでリクエストを受け付けます。 package com.example.spring.controller.c009; import org.springframework.http.HttpEntity; import org.springframework.stereotype.Controller; import org.springframework.u…