моя конечная точка:
Код: Выделить всё
@Path("/myservice")
public class TestRessource {
@GET
@Path("/test")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Uni getFinancialOverviewMobileProducts() {
return Uni.createFrom().item(new Tmp("Hello!"));
}
}
Код: Выделить всё
import io.quarkus.runtime.annotations.RegisterForReflection;
@RegisterForReflection
public class Tmp {
private String name;
public Tmp(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Код: Выделить всё
No serializer found for class io.smallrye.mutiny.operators.uni.builders.UniCreateFromKnownItem and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
Подробнее здесь: https://stackoverflow.com/questions/698 ... izer-found
Мобильная версия