You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get The Rest Client object should have the @Inject and @RestClient annotations to be injected as a CDI bean.microprofile-restclient(InjectAndRestClientAnnotationMissing) with this code for the api code which works fine in Quarkus:
@ApplicationScoped
public class AppHAContext implements IHAContext {
private HomeAssistantAPI api;
private HomeAssistantWS ws;
public AppHAContext(@RestClient HomeAssistantAPI api, HomeAssistantWS ws) {
this.api = api;
this.ws = ws;
}
@Override
public HomeAssistantAPI getApi() {
return api;
}
public HomeAssistantWS ws() {
return ws;
}
}
quarkus does automatic constructor injection thus @Inject is not required.
The text was updated successfully, but these errors were encountered:
I get
The Rest Client object should have the @Inject and @RestClient annotations to be injected as a CDI bean.microprofile-restclient(InjectAndRestClientAnnotationMissing)
with this code for theapi
code which works fine in Quarkus:quarkus does automatic constructor injection thus @Inject is not required.
The text was updated successfully, but these errors were encountered: