UnsatisfiedResolutionException: Unsatisfied dependency for type org.mapstruct.example.quarkus.PersonMapper and qualifiers [@Default]
However, if I remove the @Inject annotation as per this other article, no injection happens at all: https://stephennimmo.com/building-a-customer-api-using-quarkus-from-the-ground-up/. The mapper remains null.
What am I missing?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CABEjM6S-4hKndz5Td2pwNH51amsu9M3N8OofP3mM99BxPU_bbg%40mail.gmail.com.
package org.mapstruct.example.quarkus;
public class Person {
private String firstname;
private String lastname;
// all-args constructor, getters, setters
}
package org.mapstruct.example.quarkus;
public class PersonDto {
private String firstname;
private String surname;
// getters, setters
}
=====
package org.mapstruct.example.quarkus;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
public class PersonService {
public Person loadPerson() {
return new Person("Bob", "Miller");
}
}