5
Próbujesz pobrać Play 2.0, aby zwrócił JSON z POJO. Ale I odbieranie błądPOJO do JSON w trybie Play
The method toJson(Writes<A>) in the type Json is not applicable for the arguments (Product)
A mój kod jest:
public static Result index(String date) {
Product item = new Product();
return ok(Json.toJson(item));
}
Jakieś pomysły?
ah miejsce na. Żałuj, że dokumenty nie uczyniły tego jaśniej – KingFu