Мое приложение Quarkus собирается успешно, но я получаю вышеупомянутую ошибку после ее запуска.
Код: Выделить всё
//application.properties
quarkus.rest-client.comment-reactive-client.url=http://localhost:8084
//Rest client Interface
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import java.util.List;
@Path("/v1/db/comments")
@RegisterRestClient(configKey = "comment-reactive-client")
public interface CommentReactiveRestClient {
@GET
Uni getComments();
}
//Quarkus Resource
@Inject
@RestClient
CommentReactiveRestClient commentReactiveRestClient;
@GET
Path("/api/comments")
public Multi apiCall() {
return commentReactiveRestClient.getComments().onItem().transformToMulti(list -> Multi.createFrom().iterable(list));
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... s-after-sw
Мобильная версия