5
Der Versuch, Play 2.0 zum Zurückgeben von JSON aus einem POJO zu erhalten. Aber ich empfangen den FehlerPOJO zu JSON im Play-Framework
The method toJson(Writes<A>) in the type Json is not applicable for the arguments (Product)
Und mein Code:
public static Result index(String date) {
Product item = new Product();
return ok(Json.toJson(item));
}
Irgendwelche Ideen?
ah Spot auf. Ich wünschte, die Ärzte würden das klarer machen – KingFu