5
POJOからJSONを返すようにPlay 2.0を取得しようとしています。しかし、私はPlayフレームワークのPOJOからJSON
The method toJson(Writes<A>) in the type Json is not applicable for the arguments (Product)
エラーを受け取ると、私のコードは次のとおりです。
public static Result index(String date) {
Product item = new Product();
return ok(Json.toJson(item));
}
任意のアイデア?
ah spot on。それがより明確になるように文書を欲しい – KingFu